pub struct VoronoiDiagram {
pub cells: Vec<Vec<[f64; 2]>>,
pub triangulation: Triangulation,
pub vertices: Vec<[f64; 2]>,
}Expand description
A Voronoi diagram clipped to a bounding box: the cell of each site is the convex polygon of box points closer to that site than to any other.
Fields§
§cells: Vec<Vec<[f64; 2]>>Counter-clockwise cell polygons, one per input site (empty for duplicate or non-finite sites, which have no cell of their own).
triangulation: TriangulationThe Delaunay triangulation it was built from.
vertices: Vec<[f64; 2]>The Voronoi vertices: circumcentres of the Delaunay triangles (possibly outside the box).
Trait Implementations§
Source§impl Clone for VoronoiDiagram
impl Clone for VoronoiDiagram
Auto Trait Implementations§
impl Freeze for VoronoiDiagram
impl RefUnwindSafe for VoronoiDiagram
impl Send for VoronoiDiagram
impl Sync for VoronoiDiagram
impl Unpin for VoronoiDiagram
impl UnsafeUnpin for VoronoiDiagram
impl UnwindSafe for VoronoiDiagram
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