Struct ami::Plane [−][src]
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]
impl Planepub fn new(dir: Vec3, ofs: f32) -> Plane[src]
pub fn new(dir: Vec3, ofs: f32) -> PlaneCreate a new plane from directional vector, and offset from origin.
pub fn isdistpos_point(&self, p: Vec3) -> bool[src]
pub fn isdistpos_point(&self, p: Vec3) -> boolReturns true if distance from Plane to point is positive.
pub fn isdistpos_bcube(&self, bcube: BCube) -> bool[src]
pub fn isdistpos_bcube(&self, bcube: BCube) -> boolReturns true if distance from Plane to BCube is positive
Trait Implementations
impl Mul<Plane> for Mat4[src]
impl Mul<Plane> for Mat4type Output = Plane
The resulting type after applying the * operator.
fn mul(self, rhs: Plane) -> Self::Output[src]
fn mul(self, rhs: Plane) -> Self::OutputPerforms the * operation.
impl Clone for Plane[src]
impl Clone for Planefn clone(&self) -> Plane[src]
fn clone(&self) -> PlaneReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for Plane[src]
impl Copy for Planeimpl PartialEq for Plane[src]
impl PartialEq for Planefn eq(&self, other: &Plane) -> bool[src]
fn eq(&self, other: &Plane) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Plane) -> bool[src]
fn ne(&self, other: &Plane) -> boolThis method tests for !=.
impl Debug for Plane[src]
impl Debug for Plane