Struct ncollide3d::shape::Tetrahedron [−][src]
pub struct Tetrahedron<N: Real> { /* fields omitted */ }
A tetrahedron with 4 vertices.
Methods
impl<N: Real> Tetrahedron<N>
[src]
impl<N: Real> Tetrahedron<N>
pub fn new(a: Point<N>, b: Point<N>, c: Point<N>, d: Point<N>) -> Tetrahedron<N>
[src]
pub fn new(a: Point<N>, b: Point<N>, c: Point<N>, d: Point<N>) -> Tetrahedron<N>
Creates a tetrahedron from three points.
pub fn from_array(arr: &[Point<N>; 4]) -> &Tetrahedron<N>
[src]
pub fn from_array(arr: &[Point<N>; 4]) -> &Tetrahedron<N>
Creates the reference to a tetrahedron from the reference to an array of four points.
pub fn a(&self) -> &Point<N>
[src]
pub fn a(&self) -> &Point<N>
The fist point of this tetrahedron.
pub fn b(&self) -> &Point<N>
[src]
pub fn b(&self) -> &Point<N>
The second point of this tetrahedron.
pub fn c(&self) -> &Point<N>
[src]
pub fn c(&self) -> &Point<N>
The third point of this tetrahedron.
pub fn d(&self) -> &Point<N>
[src]
pub fn d(&self) -> &Point<N>
The fourth point of this tetrahedron.
pub fn face(&self, i: usize) -> Triangle<N>
[src]
pub fn face(&self, i: usize) -> Triangle<N>
Retuns the i-th face of this tetrahedron.
The 0-th face is the triangle ABC. The 1-st face is the triangle ABD. The 2-nd face is the triangle ACD. The 3-rd face is the triangle BCD.
pub fn edge(&self, i: usize) -> Segment<N>
[src]
pub fn edge(&self, i: usize) -> Segment<N>
Retuns the i-th edge of this tetrahedron.
The 0-st edge is the segment AB. The 1-st edge is the segment AC. The 2-nd edge is the segment AD. The 3-rd edge is the segment BC. The 4-th edge is the segment BD. The 5-th edge is the segment CD.
Trait Implementations
impl<N: Real> PointQuery<N> for Tetrahedron<N>
[src]
impl<N: Real> PointQuery<N> for Tetrahedron<N>
fn project_point(
&self,
m: &Isometry<N>,
pt: &Point<N>,
solid: bool
) -> PointProjection<N>
[src]
fn project_point(
&self,
m: &Isometry<N>,
pt: &Point<N>,
solid: bool
) -> PointProjection<N>
Projects a point on self
transformed by m
.
fn project_point_with_feature(
&self,
m: &Isometry<N>,
pt: &Point<N>
) -> (PointProjection<N>, FeatureId)
[src]
fn project_point_with_feature(
&self,
m: &Isometry<N>,
pt: &Point<N>
) -> (PointProjection<N>, FeatureId)
Projects a point on the boundary of self
transformed by m
and retuns the id of the feature the point was projected on. Read more
fn distance_to_point(&self, m: &Isometry<N>, pt: &Point<N>, solid: bool) -> N
[src]
fn distance_to_point(&self, m: &Isometry<N>, pt: &Point<N>, solid: bool) -> N
Computes the minimal distance between a point and self
transformed by m
.
fn contains_point(&self, m: &Isometry<N>, pt: &Point<N>) -> bool
[src]
fn contains_point(&self, m: &Isometry<N>, pt: &Point<N>) -> bool
Tests if the given point is inside of self
transformed by m
.
impl<N: Real> PointQueryWithLocation<N> for Tetrahedron<N>
[src]
impl<N: Real> PointQueryWithLocation<N> for Tetrahedron<N>
type Location = TetrahedronPointLocation<N>
Additional shape-specific projection information Read more
fn project_point_with_location(
&self,
m: &Isometry<N>,
pt: &Point<N>,
solid: bool
) -> (PointProjection<N>, Self::Location)
[src]
fn project_point_with_location(
&self,
m: &Isometry<N>,
pt: &Point<N>,
solid: bool
) -> (PointProjection<N>, Self::Location)
Projects a point on self
transformed by m
.
impl<N: Copy + Real> Copy for Tetrahedron<N>
[src]
impl<N: Copy + Real> Copy for Tetrahedron<N>
impl<N: Clone + Real> Clone for Tetrahedron<N>
[src]
impl<N: Clone + Real> Clone for Tetrahedron<N>
fn clone(&self) -> Tetrahedron<N>
[src]
fn clone(&self) -> Tetrahedron<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)
Performs copy-assignment from source
. Read more
impl<N: Debug + Real> Debug for Tetrahedron<N>
[src]
impl<N: Debug + Real> Debug for Tetrahedron<N>
Auto Trait Implementations
impl<N> Send for Tetrahedron<N>
impl<N> Send for Tetrahedron<N>
impl<N> Sync for Tetrahedron<N>
impl<N> Sync for Tetrahedron<N>