pub struct PowerCell {
pub site_index: usize,
pub polygon: Vec<Coordinate>,
pub is_empty: bool,
}Expand description
One cell of a power diagram.
Fields§
§site_index: usizeIndex of the generating site in the input slice.
polygon: Vec<Coordinate>Vertices of the cell polygon in counter-clockwise order.
Empty when the site is dominated by its neighbours (see is_empty).
is_empty: booltrue when every point in the bounding box is closer (in power
distance) to some other site, so this site’s cell has zero area.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PowerCell
impl RefUnwindSafe for PowerCell
impl Send for PowerCell
impl Sync for PowerCell
impl Unpin for PowerCell
impl UnsafeUnpin for PowerCell
impl UnwindSafe for PowerCell
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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