[−][src]Struct mgf::Plane
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]
Trait Implementations
impl Contains<Point3<f32>> for Plane
[src]
impl<P: Particle> Intersects<Plane> for P
[src]
fn intersection(&self, p: &Plane) -> Option<Intersection>
[src]
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
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
Returns the last contact found, 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
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
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
Returns the last contact found, if one exists.
impl Contacts<Plane> for Moving<Sphere>
[src]
fn contacts<F: FnMut(Contact)>(&self, rhs: &Plane, callback: F) -> bool
[src]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
Returns the last contact found, if one exists.
impl Contacts<Plane> for Moving<Capsule>
[src]
fn contacts<F: FnMut(Contact)>(&self, rhs: &Plane, callback: F) -> bool
[src]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
Returns the last contact found, if one exists.
impl Shape for Plane
[src]
fn center(&self) -> Point3<f32>
[src]
Conceptually, it's hard to consider any point of a plane the "center".
fn closest_point(&self, to: Point3<f32>) -> Point3<f32>
[src]
fn set_pos(&mut self, p: Point3<f32>)
[src]
Sets the center of the shape to p.
impl Clone for Plane
[src]
fn clone(&self) -> Plane
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<(Point3<f32>, Point3<f32>, Point3<f32>)> for Plane
[src]
impl From<Triangle> for Plane
[src]
impl Into<Plane> for Rectangle
[src]
impl Copy for Plane
[src]
impl Debug 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]
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]
impl AddAssign<Vector3<f32>> for Plane
[src]
fn add_assign(&mut self, v: Vector3<f32>)
[src]
impl SubAssign<Vector3<f32>> for Plane
[src]
fn sub_assign(&mut self, v: Vector3<f32>)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,