Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Sep 22, 2022
1 parent da6ff4f commit cf9c326
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/fj-kernel/src/partial/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,12 @@ impl PartialCurve {

/// Update partial curve as a circle, from the provided radius
pub fn as_circle_from_radius(self, radius: impl Into<Scalar>) -> Self {
let radius = radius.into();
self.with_path(SurfacePath::circle_from_radius(radius))
}

/// Update partial curve as a line, from the provided points
pub fn as_line_from_points(self, points: [impl Into<Point<2>>; 2]) -> Self {
let points_surface = points.map(Into::into);
self.with_path(SurfacePath::line_from_points(points_surface))
self.with_path(SurfacePath::line_from_points(points))
}

/// Build a full [`Curve`] from the partial curve
Expand Down

0 comments on commit cf9c326

Please sign in to comment.