Struct ami::Plane
[−]
[src]
pub struct Plane { pub facing: Vec3, pub offset: f32, }
A Plane
Fields
facing: Vec3
A normalized directional vector for the direction the plane faces.
offset: f32
The offset of the plane from the origin in the direction of facing
Methods
impl Plane
[src]
pub fn new(dir: Vec3, ofs: f32) -> Plane
[src]
Create a new plane from directional vector, and offset from origin.
pub fn isdistpos_point(&self, p: Vec3) -> bool
[src]
Returns true if distance from Plane to point is positive.
pub fn isdistpos_bcube(&self, bcube: BCube) -> bool
[src]
Returns true if distance from Plane to BCube is positive
Trait Implementations
impl Mul<Plane> for Mat4
[src]
type Output = Plane
The resulting type after applying the *
operator.
fn mul(self, rhs: Plane) -> Self::Output
[src]
Performs the *
operation.
impl Clone for Plane
[src]
fn clone(&self) -> Plane
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Plane
[src]
impl PartialEq for Plane
[src]
fn eq(&self, __arg_0: &Plane) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Plane) -> bool
[src]
This method tests for !=
.