Struct mgf::Triangle [] [src]

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

Triangles are three points in space.

Fields

Trait Implementations

impl BoundedBy<AABB> for Triangle
[src]

[src]

impl BoundedBy<Sphere> for Triangle
[src]

[src]

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]

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

[src]

Returns the first collision found if any exists.

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

impl Collider<Intersection, Ray> for Triangle
[src]

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

[src]

Returns the first collision found if any exists.