pub struct Triangle {
    pub a: Point,
    pub b: Point,
    pub c: Point,
}
Expand description

A triangle.

Fields

a: Pointb: Pointc: Point

Implementations

Construct a new triangle from three vertices.

Barycentric coordinates of the given point.

Test if a coplanar point is inside the triangle

Returns the point on the triangle that is closest to the given point.

Trait Implementations

Whether this shape collides with the other, and where.

Whether this shape collides with the other, and where.

Whether this shape collides with the other, and where.

Formats the value using the given formatter. Read more

Convert a vector into a point

Whether this shape intersect with the other.

Whether this shape intersect with the other.

Whether this shape intersect with the other.

Whether this shape intersect with the other.

Whether this shape intersect with the other.

Whether this shape intersect with the other.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.