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