#[non_exhaustive]pub struct SphericalVoronoi {
pub vertices: Vec<[f64; 3]>,
pub regions: Vec<Vec<usize>>,
pub radius: f64,
pub center: [f64; 3],
}Expand description
The Voronoi diagram of points on a sphere in ℝ³ (SciPy’s SphericalVoronoi): the convex
hull of the points is their Delaunay triangulation on the sphere, and each triangle’s
circumcentre projected onto the sphere (its outward normal times the radius) is a Voronoi
vertex. Regions are sorted counter-clockwise seen from outside.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.vertices: Vec<[f64; 3]>§regions: Vec<Vec<usize>>§radius: f64§center: [f64; 3]Implementations§
Trait Implementations§
Source§impl Clone for SphericalVoronoi
impl Clone for SphericalVoronoi
Auto Trait Implementations§
impl Freeze for SphericalVoronoi
impl RefUnwindSafe for SphericalVoronoi
impl Send for SphericalVoronoi
impl Sync for SphericalVoronoi
impl Unpin for SphericalVoronoi
impl UnsafeUnpin for SphericalVoronoi
impl UnwindSafe for SphericalVoronoi
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