Struct mgf::Plane [−][src]
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.
Methods
impl Plane
[src]
impl Plane
Trait Implementations
impl Contacts<Moving<Component>> for Plane
[src]
impl Contacts<Moving<Component>> for Plane
fn contacts<F: FnMut(Contact)>(
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
[src]
fn contacts<F: FnMut(Contact)>(
&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]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
Returns the last contact found, if one exists.
impl Contains<Point3<f32>> for Plane
[src]
impl Contains<Point3<f32>> for Plane
fn contains(&self, p: &Point3<f32>) -> bool
[src]
fn contains(&self, p: &Point3<f32>) -> bool
Returns true if the current object contains the argument.
impl<P: Particle> Intersects<Plane> for P
[src]
impl<P: Particle> Intersects<Plane> for P
fn intersection(&self, p: &Plane) -> Option<Intersection>
[src]
fn intersection(&self, p: &Plane) -> Option<Intersection>
Returns an Intersection if one exists.
impl Contacts<Moving<Sphere>> for Plane
[src]
impl Contacts<Moving<Sphere>> for Plane
fn contacts<F: FnMut(Contact)>(
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
[src]
fn contacts<F: FnMut(Contact)>(
&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]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
Returns the last contact found, if one exists.
impl Contacts<Moving<Capsule>> for Plane
[src]
impl Contacts<Moving<Capsule>> for Plane
fn contacts<F: FnMut(Contact)>(
&self,
capsule: &Moving<Capsule>,
callback: F
) -> bool
[src]
fn contacts<F: FnMut(Contact)>(
&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]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
Returns the last contact found, if one exists.
impl Contacts<Plane> for Moving<Sphere>
[src]
impl Contacts<Plane> for Moving<Sphere>
fn contacts<F: FnMut(Contact)>(&self, rhs: &Plane, callback: F) -> bool
[src]
fn contacts<F: FnMut(Contact)>(&self, rhs: &Plane, 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]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
Returns the last contact found, if one exists.
impl Contacts<Plane> for Moving<Capsule>
[src]
impl Contacts<Plane> for Moving<Capsule>
fn contacts<F: FnMut(Contact)>(&self, rhs: &Plane, callback: F) -> bool
[src]
fn contacts<F: FnMut(Contact)>(&self, rhs: &Plane, 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]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
Returns the last contact found, if one exists.
impl Copy for Plane
[src]
impl Copy for Plane
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)
Performs copy-assignment from source
. Read more
impl Debug for Plane
[src]
impl Debug for Plane
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<(Point3<f32>, Point3<f32>, Point3<f32>)> for Plane
[src]
impl From<(Point3<f32>, Point3<f32>, Point3<f32>)> for Plane
impl From<Triangle> for Plane
[src]
impl From<Triangle> for Plane
impl Into<Plane> for Rectangle
[src]
impl Into<Plane> for Rectangle
impl Add<Vector3<f32>> for Plane
[src]
impl Add<Vector3<f32>> for Plane
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector3<f32>) -> Plane
[src]
fn add(self, v: Vector3<f32>) -> Plane
Performs the +
operation.
impl Sub<Vector3<f32>> for Plane
[src]
impl Sub<Vector3<f32>> for Plane
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<f32>) -> Plane
[src]
fn sub(self, v: Vector3<f32>) -> Plane
Performs the -
operation.
impl AddAssign<Vector3<f32>> for Plane
[src]
impl AddAssign<Vector3<f32>> for Plane
fn add_assign(&mut self, v: Vector3<f32>)
[src]
fn add_assign(&mut self, v: Vector3<f32>)
Performs the +=
operation.
impl SubAssign<Vector3<f32>> for Plane
[src]
impl SubAssign<Vector3<f32>> for Plane
fn sub_assign(&mut self, v: Vector3<f32>)
[src]
fn sub_assign(&mut self, v: Vector3<f32>)
Performs the -=
operation.
impl Shape for Plane
[src]
impl Shape for Plane
fn center(&self) -> Point3<f32>
[src]
fn center(&self) -> Point3<f32>
Conceptually, it's hard to consider any point of a plane the "center".
fn closest_point(&self, to: Point3<f32>) -> Point3<f32>
[src]
fn closest_point(&self, to: Point3<f32>) -> Point3<f32>
Returns the closest point on the shape to the given point.
fn set_pos(&mut self, p: Point3<f32>)
[src]
fn set_pos(&mut self, p: Point3<f32>)
Sets the center of the shape to p.