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.

Trait Implementations

impl Contacts<Moving<Component>> for Plane
[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 Plane
[src]

[src]

Returns true if the current object contains the argument.

impl Intersects<Ray> for Plane
[src]

[src]

Returns an Intersection if one exists.

impl Contacts<Moving<Sphere>> for Plane
[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 Contacts<Moving<Capsule>> for Plane
[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 Copy for Plane
[src]

impl Clone for Plane
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Plane
[src]

[src]

Formats the value using the given formatter.

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

[src]

Performs the conversion.

impl From<Triangle> for Plane
[src]

[src]

Performs the conversion.

impl MinDistance<Point3<f32>, f32> for Plane
[src]

[src]

Returns the smallest distance squared

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

[src]

Returns closest point on plane to q

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.

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

[src]

Performs the += operation.

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

[src]

Performs the -= operation.

impl Shape for Plane
[src]

[src]

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

[src]

Sets the center of the shape to p.