Struct geo::algorithm::triangulate_earcut::RawTriangulation
source · pub struct RawTriangulation<T: CoordFloat> {
pub vertices: Vec<T>,
pub triangle_indices: Vec<usize>,
}
Expand description
The raw result of triangulating a polygon from earcutr
.
Fields§
§vertices: Vec<T>
Flattened one-dimensional vector of polygon vertices (in XY order).
triangle_indices: Vec<usize>
Indices of the triangles within the vertices vector.
Trait Implementations§
source§impl<T: Clone + CoordFloat> Clone for RawTriangulation<T>
impl<T: Clone + CoordFloat> Clone for RawTriangulation<T>
source§fn clone(&self) -> RawTriangulation<T>
fn clone(&self) -> RawTriangulation<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug + CoordFloat> Debug for RawTriangulation<T>
impl<T: Debug + CoordFloat> Debug for RawTriangulation<T>
source§impl<T: PartialEq + CoordFloat> PartialEq for RawTriangulation<T>
impl<T: PartialEq + CoordFloat> PartialEq for RawTriangulation<T>
source§fn eq(&self, other: &RawTriangulation<T>) -> bool
fn eq(&self, other: &RawTriangulation<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: CoordFloat> StructuralPartialEq for RawTriangulation<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for RawTriangulation<T>where
T: RefUnwindSafe,
impl<T> Send for RawTriangulation<T>where
T: Send,
impl<T> Sync for RawTriangulation<T>where
T: Sync,
impl<T> Unpin for RawTriangulation<T>where
T: Unpin,
impl<T> UnwindSafe for RawTriangulation<T>where
T: UnwindSafe,
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