pub struct VoronoiCell { /* private fields */ }Expand description
A Voronoi cell represented by its site index and boundary vertices.
Implementations§
Source§impl VoronoiCell
impl VoronoiCell
Sourcepub const fn new(site_index: usize, boundary_vertices: Vec<Point2>) -> Self
pub const fn new(site_index: usize, boundary_vertices: Vec<Point2>) -> Self
Creates a Voronoi cell record.
Sourcepub const fn site_index(&self) -> usize
pub const fn site_index(&self) -> usize
Returns the site index.
Sourcepub fn boundary_vertices(&self) -> &[Point2]
pub fn boundary_vertices(&self) -> &[Point2]
Returns the boundary vertices.
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 moreSource§impl Debug for VoronoiCell
impl Debug for VoronoiCell
Source§impl PartialEq for VoronoiCell
impl PartialEq for VoronoiCell
impl StructuralPartialEq for VoronoiCell
Auto 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