Enum spade::PositionInTriangulation
source · pub enum PositionInTriangulation {
OnVertex(FixedVertexHandle),
OnEdge(FixedDirectedEdgeHandle),
OnFace(FixedFaceHandle<InnerTag>),
OutsideOfConvexHull(FixedDirectedEdgeHandle),
NoTriangulation,
}
Expand description
Describes a position in a triangulation.
The position is set in relation to the triangulation’s vertices, edges and faces. This type is usually the result of calling Triangulation::locate
Variants§
OnVertex(FixedVertexHandle)
A position lies exactly on an existing vertex. The verticis handle is given.
OnEdge(FixedDirectedEdgeHandle)
A position lies exactly on an edge. The edge’s handle is given.
OnFace(FixedFaceHandle<InnerTag>)
A position lies in the interior of a face. The face’s handle is given.
OutsideOfConvexHull(FixedDirectedEdgeHandle)
A position lies outside the convex hull. The given edge handle refers to an edge of the convex hull which has both the point and the outer face on its left side.
Note: The given edge is not necessarily the closest edge to a position.
NoTriangulation
The triangulation contains either no vertices or exactly one vertex which has a different position than the query point.
Trait Implementations§
source§impl Clone for PositionInTriangulation
impl Clone for PositionInTriangulation
source§fn clone(&self) -> PositionInTriangulation
fn clone(&self) -> PositionInTriangulation
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 Debug for PositionInTriangulation
impl Debug for PositionInTriangulation
source§impl Hash for PositionInTriangulation
impl Hash for PositionInTriangulation
source§impl Ord for PositionInTriangulation
impl Ord for PositionInTriangulation
source§fn cmp(&self, other: &PositionInTriangulation) -> Ordering
fn cmp(&self, other: &PositionInTriangulation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PositionInTriangulation
impl PartialEq for PositionInTriangulation
source§impl PartialOrd for PositionInTriangulation
impl PartialOrd for PositionInTriangulation
impl Copy for PositionInTriangulation
impl Eq for PositionInTriangulation
impl StructuralPartialEq for PositionInTriangulation
Auto Trait Implementations§
impl Freeze for PositionInTriangulation
impl RefUnwindSafe for PositionInTriangulation
impl Send for PositionInTriangulation
impl Sync for PositionInTriangulation
impl Unpin for PositionInTriangulation
impl UnwindSafe for PositionInTriangulation
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)