Struct mgf::Triangle [] [src]

pub struct Triangle {
    pub a: Vector3<f32>,
    pub b: Vector3<f32>,
    pub c: Vector3<f32>,
}

Three points in space.

Fields

The first point in the triangle.

The second point in the triangle.

The third point in the triangle.

Trait Implementations

impl BoundedBy<AABB> for Triangle
[src]

[src]

impl BoundedBy<Sphere> for Triangle
[src]

[src]

impl Contacts<Moving<Component>> for Triangle
[src]

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

impl Contains<Point3<f32>> for Triangle
[src]

[src]

Returns true if the current object contains the argument.

impl Intersects<Ray> for Triangle
[src]

[src]

Returns an Intersection if one exists.

impl Copy for Triangle
[src]

impl Clone for Triangle
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Triangle
[src]

[src]

Formats the value using the given formatter.

impl From<(Point3<f32>, Point3<f32>, Point3<f32>)> for Triangle
[src]

[src]

Performs the conversion.

impl MinDistance<Point3<f32>> for Triangle
[src]

[src]

Returns closest point on the triangle to q

impl Add<Vector3<f32>> for Triangle
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Vector3<f32>> for Triangle
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl AddAssign<Vector3<f32>> for Triangle
[src]

[src]

Performs the += operation.

impl SubAssign<Vector3<f32>> for Triangle
[src]

[src]

Performs the -= operation.

impl Shape for Triangle
[src]

[src]

Returns the center of mass of the geometry, assuming a regular density.

[src]

Sets the center of the shape to p.

impl Polygon for Triangle
[src]

Type of the face object the polygon returns.

[src]

The number of edges available to query.

[src]

Returns the ith vertex as a Point.

[src]

The number of edges available to query.

[src]

Returns the ith edge of the polygon as a pair of indices.

[src]