Enum ncollide::query::TrianglePointLocation
[−]
[src]
pub enum TrianglePointLocation<N> where
N: Real, { OnVertex(usize), OnEdge(usize, [N; 2]), OnFace([N; 3]), OnSolid, }
Logical description of the location of a point on a triangle.
Variants
OnVertex(usize)
The point lies on a vertex.
OnEdge(usize, [N; 2])
The point lies on an edge.
OnFace([N; 3])
The point lies on the triangle interior.
OnSolid
The point lies on the triangle interior (for "solid" point queries).
Methods
impl<N> TrianglePointLocation<N> where
N: Real,
[src]
N: Real,
fn is_on_face(&self) -> bool
[src]
Returns true
if the point is located on the relative interior of the triangle.
Trait Implementations
impl<N> Copy for TrianglePointLocation<N> where
N: Copy + Real,
[src]
N: Copy + Real,
impl<N> Clone for TrianglePointLocation<N> where
N: Clone + Real,
[src]
N: Clone + Real,
fn clone(&self) -> TrianglePointLocation<N>
[src]
impl<N> Debug for TrianglePointLocation<N> where
N: Debug + Real,
[src]
N: Debug + Real,