pub enum Seg {
Line {
a: Vector2,
b: Vector2,
},
Arc {
center: Vector2,
radius: Scalar,
a: Vector2,
b: Vector2,
ccw: bool,
},
Other,
}Expand description
A curve of the layout, as far as cutting is concerned: a line, an arc of less than half a turn, or something else, which a cut may not cross.
Variants§
Implementations§
Source§impl Seg
impl Seg
Sourcepub fn of(curve: &NurbCurve2D) -> GeopResult<Self>
pub fn of(curve: &NurbCurve2D) -> GeopResult<Self>
What curve is.
Sourcepub fn middle(&self, curve: &NurbCurve2D) -> GeopResult<Vector2>
pub fn middle(&self, curve: &NurbCurve2D) -> GeopResult<Vector2>
A point of it, away from its ends: halfway, along a line or an arc.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Seg
impl RefUnwindSafe for Seg
impl Send for Seg
impl Sync for Seg
impl Unpin for Seg
impl UnsafeUnpin for Seg
impl UnwindSafe for Seg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more