Struct ami::Plane [] [src]

pub struct Plane {
    pub facing: Vec3<f32>,
    pub offset: f32,
}

A Plane

Fields

A normalized directional vector for the direction the plane faces.

The offset of the plane from the origin in the direction of facing

Methods

impl Plane
[src]

[src]

Create a new plane from directional vector, and offset from origin.

[src]

Returns true if distance from Plane to point is positive.

[src]

Returns true if distance from Plane to BBox is positive

Trait Implementations

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 Copy for Plane
[src]

impl PartialEq for Plane
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Plane
[src]

[src]

Formats the value using the given formatter.