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