Struct mgf::Plane[][src]

pub struct Plane {
    pub n: Vector3<f32>,
    pub d: f32,
}

A normal vector and a distance.

Fields

The normal vector of the plane.

The plane's distance from the origin.

Methods

impl Plane
[src]

Create a new plane.

Trait Implementations

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

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

Returns the last contact found, if one exists.

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

Returns true if the current object contains the argument.

impl<P: Particle> Intersects<Plane> for P
[src]

Returns an Intersection if one exists.

impl Contacts<Moving<Sphere>> for Plane
[src]

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

Returns the last contact found, if one exists.

impl Contacts<Moving<Capsule>> for Plane
[src]

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

Returns the last contact found, if one exists.

impl Contacts<Plane> for Moving<Sphere>
[src]

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

Returns the last contact found, if one exists.

impl Contacts<Plane> for Moving<Capsule>
[src]

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

Returns the last contact found, if one exists.

impl Copy for Plane
[src]

impl Clone for Plane
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Plane
[src]

Formats the value using the given formatter. Read more

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

Performs the conversion.

impl From<Triangle> for Plane
[src]

Performs the conversion.

impl Into<Plane> for Rectangle
[src]

Performs the conversion.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

Performs the += operation.

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

Performs the -= operation.

impl Shape for Plane
[src]

Conceptually, it's hard to consider any point of a plane the "center".

Returns the closest point on the shape to the given point.

Sets the center of the shape to p.

Auto Trait Implementations

impl Send for Plane

impl Sync for Plane