pub struct Rings {
pub outer: Vec<DVec2>,
pub holes: Vec<Vec<DVec2>>,
}Expand description
Outer ring plus holes, all CCW/CW normalised by the caller’s contract: outer counter-clockwise, holes clockwise.
Fields§
§outer: Vec<DVec2>Outer boundary, counter-clockwise.
holes: Vec<Vec<DVec2>>Inner boundaries, clockwise.
Trait Implementations§
impl StructuralPartialEq for Rings
Auto Trait Implementations§
impl Freeze for Rings
impl RefUnwindSafe for Rings
impl Send for Rings
impl Sync for Rings
impl Unpin for Rings
impl UnwindSafe for Rings
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