[−][src]Struct voronator::VoronoiDiagram
Represents a Voronoi diagram.
Fields
sites: Vec<Point>
Contains the input data
delaunay: Triangulation
A Triangulation
struct that contains the Delaunay triangulation information.
centers: Vec<Point>
Stores the circumcenter of each triangle
cells: Vec<Vec<Point>>
Stores the coordinates of each vertex of a cell, in counter-clockwise order
neighbors: Vec<Vec<usize>>
Stores the neighbor of each cell
Implementations
impl VoronoiDiagram
[src]
pub fn new(min: &Point, max: &Point, points: &[Point]) -> Option<Self>
[src]
Creates a Voronoi diagram, if it exists, for a given set of points.
Points are represented here as a delaunator::Point
.
delaunator::Point
: ./delaunator/struct.Point.html
pub fn from_tuple(
min: &(f64, f64),
max: &(f64, f64),
coords: &[(f64, f64)]
) -> Option<Self>
[src]
min: &(f64, f64),
max: &(f64, f64),
coords: &[(f64, f64)]
) -> Option<Self>
Creates a Voronoi diagram, if it exists, for a given set of points.
Points are represented here as a (f64, f64)
tuple.
Auto Trait Implementations
impl RefUnwindSafe for VoronoiDiagram
impl Send for VoronoiDiagram
impl Sync for VoronoiDiagram
impl Unpin for VoronoiDiagram
impl UnwindSafe for VoronoiDiagram
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,