pub struct Plane {
    pub normal: Vector3,
    pub d: f32,
}
Expand description

An infinite plane.

Fields

normal: Vector3

The normal that liest perpendicular to the plane.

d: f32

The distance from the plane to the origin.

Implementations

Construct a plane given the components of the plan equation.

Constructs a plane from three points that lie on the plane.

Constructs a plane from a point that lies on the plane, and the normal to the plane.

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

Trait Implementations

Formats the value using the given formatter. Read more

Returns the signed distance between the plane and a given point.

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.

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.