diff --git a/crates/fj-core/src/geometry/curve.rs b/crates/fj-core/src/geometry/curve.rs index cd60987f0..7089903e6 100644 --- a/crates/fj-core/src/geometry/curve.rs +++ b/crates/fj-core/src/geometry/curve.rs @@ -68,7 +68,7 @@ pub trait GenPolyline { /// provided point. fn line_segment_at( &self, - point: impl Into>, + point: Point<1>, tolerance: impl Into, ) -> [Point; 2]; } @@ -80,10 +80,9 @@ impl GenPolyline for Circle { fn line_segment_at( &self, - point: impl Into>, + point: Point<1>, tolerance: impl Into, ) -> [Point; 2] { - let point = point.into(); let params = PathApproxParams::for_circle(self, tolerance); [point.t - params.increment(), point.t + params.increment()] @@ -98,11 +97,9 @@ impl GenPolyline for Line { fn line_segment_at( &self, - point: impl Into>, + point: Point<1>, _: impl Into, ) -> [Point; 2] { - let point = point.into(); - // Collapse line segment into a point, as per documentation. let point = self.origin() + self.direction() * point.t; @@ -122,7 +119,7 @@ impl GenPolyline for Path { fn line_segment_at( &self, - point: impl Into>, + point: Point<1>, tolerance: impl Into, ) -> [Point; 2] { match self {