Enum ncollide3d::shape::TetrahedronPointLocation [−][src]
pub enum TetrahedronPointLocation<N: Real> { OnVertex(usize), OnEdge(usize, [N; 2]), OnFace(usize, [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 a vertex.
OnFace(usize, [N; 3])
The point lies on a triangular face interior.
The first face is the triangle ABC. The second face is the triangle ABD. The third face is the triangle ACD. The fourth face is the triangle BDC.
OnSolid
The point lies inside of the tetrahedron.
Methods
impl<N: Real> TetrahedronPointLocation<N>
[src]
impl<N: Real> TetrahedronPointLocation<N>
pub fn same_feature_as(&self, other: &TetrahedronPointLocation<N>) -> bool
[src]
pub fn same_feature_as(&self, other: &TetrahedronPointLocation<N>) -> bool
Returns true
if both self
and other
correspond to points on the same feature of a tetrahedron.
Trait Implementations
impl<N: Copy + Real> Copy for TetrahedronPointLocation<N>
[src]
impl<N: Copy + Real> Copy for TetrahedronPointLocation<N>
impl<N: Clone + Real> Clone for TetrahedronPointLocation<N>
[src]
impl<N: Clone + Real> Clone for TetrahedronPointLocation<N>
fn clone(&self) -> TetrahedronPointLocation<N>
[src]
fn clone(&self) -> TetrahedronPointLocation<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 TetrahedronPointLocation<N>
[src]
impl<N: Debug + Real> Debug for TetrahedronPointLocation<N>
Auto Trait Implementations
impl<N> Send for TetrahedronPointLocation<N>
impl<N> Send for TetrahedronPointLocation<N>
impl<N> Sync for TetrahedronPointLocation<N>
impl<N> Sync for TetrahedronPointLocation<N>