pub trait CurveBuilder {
    // Required methods
    fn update_as_u_axis(&mut self) -> SurfacePath;
    fn update_as_v_axis(&mut self) -> SurfacePath;
    fn update_as_circle_from_radius(
&mut self,
radius: impl Into<Scalar>
) -> SurfacePath; fn update_as_circle_from_center_and_radius(
&mut self,
center: impl Into<Point<2>>,
radius: impl Into<Scalar>
) -> SurfacePath; fn update_as_line_from_points(
&mut self,
points: [impl Into<Point<2>>; 2]
) -> SurfacePath; fn update_as_line_from_points_with_line_coords(
&mut self,
points: [(impl Into<Point<1>>, impl Into<Point<2>>); 2]
) -> SurfacePath; }
Expand description

Builder API for PartialCurve

Required Methods§

source

fn update_as_u_axis(&mut self) -> SurfacePath

Update partial curve to represent the u-axis of the surface it is on

Returns the updated path.

source

fn update_as_v_axis(&mut self) -> SurfacePath

Update partial curve to represent the v-axis of the surface it is on

Returns the updated path.

source

fn update_as_circle_from_radius(
&mut self,
radius: impl Into<Scalar>
) -> SurfacePath

Update partial curve to be a circle, from the provided radius

Returns the updated path.

source

fn update_as_circle_from_center_and_radius(
&mut self,
center: impl Into<Point<2>>,
radius: impl Into<Scalar>
) -> SurfacePath

Update partial curve to be a circle, from the provided radius

Returns the updated path.

source

fn update_as_line_from_points(
&mut self,
points: [impl Into<Point<2>>; 2]
) -> SurfacePath

Update partial curve to be a line, from the provided points

Returns the updated path.

source

fn update_as_line_from_points_with_line_coords(
&mut self,
points: [(impl Into<Point<1>>, impl Into<Point<2>>); 2]
) -> SurfacePath

Update partial curve to be a line, from provided points and line coords

Returns the updated path.

Implementors§