Struct mgf::Plane
[−]
[src]
pub struct Plane { pub n: Vector3<f32>, pub d: f32, }
A normal vector and a distance.
Fields
n: Vector3<f32>
The normal vector of the plane.
d: f32
The plane's distance from the origin.
Trait Implementations
impl Contacts<Moving<Component>> for Plane
[src]
fn contacts<F: FnMut(Contact)>(
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
[src]
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
Calls the closure for each contact found. Returns true if any contact was found. Read more
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
Returns the last contact found, if one exists.
impl Contains<Point3<f32>> for Plane
[src]
fn contains(&self, p: &Point3<f32>) -> bool
[src]
Returns true if the current object contains the argument.
impl Intersects<Ray> for Plane
[src]
fn intersection(&self, r: &Ray) -> Option<Intersection>
[src]
Returns an Intersection if one exists.
impl Contacts<Moving<Sphere>> for Plane
[src]
fn contacts<F: FnMut(Contact)>(
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
[src]
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
Calls the closure for each contact found. Returns true if any contact was found. Read more
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
Returns the last contact found, if one exists.
impl Contacts<Moving<Capsule>> for Plane
[src]
fn contacts<F: FnMut(Contact)>(
&self,
capsule: &Moving<Capsule>,
callback: F
) -> bool
[src]
&self,
capsule: &Moving<Capsule>,
callback: F
) -> bool
Calls the closure for each contact found. Returns true if any contact was found. Read more
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
Returns the last contact found, if one exists.
impl Copy for Plane
[src]
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 Debug for Plane
[src]
impl From<(Point3<f32>, Point3<f32>, Point3<f32>)> for Plane
[src]
impl From<Triangle> for Plane
[src]
impl MinDistance<Point3<f32>, f32> for Plane
[src]
impl MinDistance<Point3<f32>> for Plane
[src]
impl Add<Vector3<f32>> for Plane
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector3<f32>) -> Plane
[src]
Performs the +
operation.
impl Sub<Vector3<f32>> for Plane
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<f32>) -> Plane
[src]
Performs the -
operation.
impl AddAssign<Vector3<f32>> for Plane
[src]
fn add_assign(&mut self, v: Vector3<f32>)
[src]
Performs the +=
operation.
impl SubAssign<Vector3<f32>> for Plane
[src]
fn sub_assign(&mut self, v: Vector3<f32>)
[src]
Performs the -=
operation.