diff --git a/crates/fj-kernel/src/algorithms/sweep/mod.rs b/crates/fj-kernel/src/algorithms/sweep/mod.rs index d6ad6b2b1..fccdef75d 100644 --- a/crates/fj-kernel/src/algorithms/sweep/mod.rs +++ b/crates/fj-kernel/src/algorithms/sweep/mod.rs @@ -6,7 +6,7 @@ mod face; mod sketch; mod vertex; -use fj_math::{Scalar, Vector}; +use fj_math::Vector; /// Sweep an object along a path to create another object pub trait Sweep { @@ -16,28 +16,3 @@ pub trait Sweep { /// Sweep the object along the given path fn sweep(self, path: impl Into>) -> Self::Swept; } - -/// A path to be used with [`Sweep`] -#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)] -pub struct Path(Vector<3>); - -impl Path { - /// Return the vector that defines this path - pub fn inner(&self) -> Vector<3> { - self.0 - } - - /// Indicate whether the path is in the negative direction - pub fn is_negative_direction(&self) -> bool { - self.0.dot(&Vector::from([0., 0., 1.])) < Scalar::ZERO - } -} - -impl From for Path -where - T: Into>, -{ - fn from(value: T) -> Self { - Self(value.into()) - } -}