pub struct VoronoiCell {
pub generator_index: usize,
pub neighbor_indices: Vec<usize>,
pub area: f64,
}Expand description
A cell in the spherical Voronoi diagram.
NOTE: item-level Voronoi (beyond category centroids) may be explored in a future version. For now, the input is expected to be O(10–100) category centroids.
Fields§
§generator_index: usize§neighbor_indices: Vec<usize>§area: f64Approximate cell area in steradians, estimated via Monte Carlo.
Trait Implementations§
Source§impl Clone for VoronoiCell
impl Clone for VoronoiCell
Source§fn clone(&self) -> VoronoiCell
fn clone(&self) -> VoronoiCell
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VoronoiCell
impl RefUnwindSafe for VoronoiCell
impl Send for VoronoiCell
impl Sync for VoronoiCell
impl Unpin for VoronoiCell
impl UnsafeUnpin for VoronoiCell
impl UnwindSafe for VoronoiCell
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