Struct ami::Plane
[−]
[src]
pub struct Plane { pub facing: Vec3<f32>, pub offset: f32, }
A Plane
Fields
facing: Vec3<f32>
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]
fn new(dir: Vec3<f32>, ofs: f32) -> Plane
[src]
Create a new plane from directional vector, and offset from origin.
fn isdistpos_point(&self, p: Vec3<f32>) -> bool
[src]
Returns true if distance from Plane to point is positive.
fn isdistpos_bbox(&self, bbox: BBox<i32>) -> bool
[src]
Returns true if distance from Plane to BBox is positive
Trait Implementations
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 !=
.