Struct mgf::Plane [] [src]

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

Planes are a normal vector and a distance.

Fields

Trait Implementations

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.

impl Collider<Contains, Point3<f32>> for Plane
[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 Plane
[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.

impl Collider<Contact, Moving<Sphere>> for Plane
[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.

impl Collider<Contact, Moving<Capsule>> for Plane
[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.