pub struct Polyline<P> {
pub points: Vec<P>,
pub closed: bool,
}Expand description
Piecewise-linear curve preserving source vertex order.
Its native parameter is one unit per segment, not arc length and not a
normalised (0, 1): an open n-point polyline spans (0, n - 1) and a
closed one (0, n). A trim or profile-segment domain of (0, 1) on a
multi-segment polyline therefore selects only its first edge; the scalar
flattener in axiolid-evaluate refuses that rather than silently dropping
the remaining vertices.
Fields§
§points: Vec<P>Ordered control points.
closed: boolWhether the final point connects back to the first.
Trait Implementations§
impl<P> StructuralPartialEq for Polyline<P>
Auto Trait Implementations§
impl<P> Freeze for Polyline<P>
impl<P> RefUnwindSafe for Polyline<P>where
P: RefUnwindSafe,
impl<P> Send for Polyline<P>where
P: Send,
impl<P> Sync for Polyline<P>where
P: Sync,
impl<P> Unpin for Polyline<P>where
P: Unpin,
impl<P> UnwindSafe for Polyline<P>where
P: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more