Struct ami::Plane [−][src]
Single-precision 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 Plane
pub fn new(dir: Vec3, ofs: f32) -> Plane
[src]
pub fn new(dir: Vec3, ofs: f32) -> Plane
Create 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) -> bool
Returns 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) -> bool
Returns true if distance from Plane to BCube is positive
Trait Implementations
impl Clone for Plane
[src]
impl Clone for Plane
fn clone(&self) -> Plane
[src]
fn clone(&self) -> Plane
Returns 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 Plane
impl PartialEq for Plane
[src]
impl PartialEq for Plane
fn eq(&self, other: &Plane) -> bool
[src]
fn eq(&self, other: &Plane) -> bool
This 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) -> bool
This method tests for !=
.
impl Debug for Plane
[src]
impl Debug for Plane