Enum ncollide3d::shape::TrianglePointLocation [−][src]
pub enum TrianglePointLocation<N: Real> { OnVertex(usize), OnEdge(usize, [N; 2]), OnFace([N; 3]), OnSolid, }
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: Real> TrianglePointLocation<N>
[src]
impl<N: Real> TrianglePointLocation<N>
pub fn is_on_face(&self) -> bool
[src]
pub fn is_on_face(&self) -> bool
Returns true
if the point is located on the relative interior of the triangle.
Trait Implementations
impl<N: Copy + Real> Copy for TrianglePointLocation<N>
[src]
impl<N: Copy + Real> Copy for TrianglePointLocation<N>
impl<N: Clone + Real> Clone for TrianglePointLocation<N>
[src]
impl<N: Clone + Real> Clone for TrianglePointLocation<N>
fn clone(&self) -> TrianglePointLocation<N>
[src]
fn clone(&self) -> TrianglePointLocation<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<N: Debug + Real> Debug for TrianglePointLocation<N>
[src]
impl<N: Debug + Real> Debug for TrianglePointLocation<N>
Auto Trait Implementations
impl<N> Send for TrianglePointLocation<N>
impl<N> Send for TrianglePointLocation<N>
impl<N> Sync for TrianglePointLocation<N>
impl<N> Sync for TrianglePointLocation<N>