pub enum EdgeLink {
Line {
a: (f64, f64),
b: (f64, f64),
},
Circle {
center: (f64, f64),
rim: (f64, f64),
},
Arc {
center: (f64, f64),
start: (f64, f64),
end: (f64, f64),
},
Polyline {
pts: Vec<(f64, f64)>,
},
}Expand description
The classification of a projected edge polyline, in plane (u, v) coordinates.
Variants§
Line
A straight edge — link as a line through the two endpoints.
Circle
A closed circular edge — link as a circle (center + a rim point).
Arc
A circular ARC — link as an arc (center, start, end; CCW start→end).
Polyline
A faithful fallback for anything else — a chain of line segments through the
projected polyline samples.
Implementations§
Trait Implementations§
impl StructuralPartialEq for EdgeLink
Auto Trait Implementations§
impl Freeze for EdgeLink
impl RefUnwindSafe for EdgeLink
impl Send for EdgeLink
impl Sync for EdgeLink
impl Unpin for EdgeLink
impl UnsafeUnpin for EdgeLink
impl UnwindSafe for EdgeLink
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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