[−][src]Struct voronator::CentroidDiagram
Represents a centroidal tesselation 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 centroid 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 CentroidDiagram
[src]
pub fn new(points: &[Point]) -> Option<Self>
[src]
Creates a centroidal tesselation, if it exists, for a given set of points.
Points are represented here as a delaunator::Point
.
pub fn from_tuple(coords: &[(f64, f64)]) -> Option<Self>
[src]
Creates a centroidal tesselation, if it exists, for a given set of points.
Points are represented here as a (f64, f64)
tuple.
Auto Trait Implementations
impl RefUnwindSafe for CentroidDiagram
impl Send for CentroidDiagram
impl Sync for CentroidDiagram
impl Unpin for CentroidDiagram
impl UnwindSafe for CentroidDiagram
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>,