pub struct DelaunayTriangulation { /* private fields */ }Expand description
A Delaunay triangulation represented by indexed triangles.
Implementations§
Source§impl DelaunayTriangulation
impl DelaunayTriangulation
Sourcepub const fn new(triangles: Vec<[usize; 3]>) -> DelaunayTriangulation
pub const fn new(triangles: Vec<[usize; 3]>) -> DelaunayTriangulation
Creates a Delaunay triangulation record.
Sourcepub fn triangle_count(&self) -> usize
pub fn triangle_count(&self) -> usize
Returns the number of triangles.
Sourcepub fn edge_count_upper_bound(&self) -> usize
pub fn edge_count_upper_bound(&self) -> usize
Returns a conservative upper bound for the number of triangle edges.
Trait Implementations§
Source§impl Clone for DelaunayTriangulation
impl Clone for DelaunayTriangulation
Source§fn clone(&self) -> DelaunayTriangulation
fn clone(&self) -> DelaunayTriangulation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DelaunayTriangulation
impl Debug for DelaunayTriangulation
Source§impl PartialEq for DelaunayTriangulation
impl PartialEq for DelaunayTriangulation
Source§fn eq(&self, other: &DelaunayTriangulation) -> bool
fn eq(&self, other: &DelaunayTriangulation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DelaunayTriangulation
impl StructuralPartialEq for DelaunayTriangulation
Auto Trait Implementations§
impl Freeze for DelaunayTriangulation
impl RefUnwindSafe for DelaunayTriangulation
impl Send for DelaunayTriangulation
impl Sync for DelaunayTriangulation
impl Unpin for DelaunayTriangulation
impl UnsafeUnpin for DelaunayTriangulation
impl UnwindSafe for DelaunayTriangulation
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