pub enum SegmentTriangleRelation {
Disjoint,
Proper,
Touching,
Coplanar,
DegenerateSegment,
DegenerateTriangle,
}Expand description
The topological relation between a finite segment and one triangle.
Variants§
Disjoint
The closed primitives have no common point.
Proper
The segment crosses the triangle interior at one point.
Touching
The primitives meet at an endpoint, edge, or vertex.
Coplanar
Both segment endpoints lie in the triangle plane.
This deliberately does not claim overlap: callers needing coplanar coverage use a projected 2D predicate with an explicit policy.
DegenerateSegment
The segment endpoints are identical.
DegenerateTriangle
The three triangle vertices are collinear.
Trait Implementations§
Source§impl Clone for SegmentTriangleRelation
impl Clone for SegmentTriangleRelation
impl Copy for SegmentTriangleRelation
Source§impl Debug for SegmentTriangleRelation
impl Debug for SegmentTriangleRelation
impl Eq for SegmentTriangleRelation
Source§impl PartialEq for SegmentTriangleRelation
impl PartialEq for SegmentTriangleRelation
impl StructuralPartialEq for SegmentTriangleRelation
Auto Trait Implementations§
impl Freeze for SegmentTriangleRelation
impl RefUnwindSafe for SegmentTriangleRelation
impl Send for SegmentTriangleRelation
impl Sync for SegmentTriangleRelation
impl Unpin for SegmentTriangleRelation
impl UnsafeUnpin for SegmentTriangleRelation
impl UnwindSafe for SegmentTriangleRelation
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