[][src]Struct mgf::Plane

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.

Methods

impl Plane[src]

pub fn new(n: Vector3<f32>, d: f32) -> Self[src]

Create a new plane.

Trait Implementations

impl Add<Vector3<f32>> for Plane[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<Vector3<f32>> for Plane[src]

impl Clone for Plane[src]

impl Contacts<Moving<Capsule>> for Plane[src]

impl Contacts<Moving<Component>> for Plane[src]

impl Contacts<Moving<Sphere>> for Plane[src]

impl Contacts<Plane> for Moving<Sphere>[src]

impl Contacts<Plane> for Moving<Capsule>[src]

impl Contains<Point3<f32>> for Plane[src]

impl Copy for Plane[src]

impl Debug for Plane[src]

impl<'de> Deserialize<'de> for Plane[src]

impl From<(Point3<f32>, Point3<f32>, Point3<f32>)> for Plane[src]

impl From<Triangle> for Plane[src]

impl<P: Particle> Intersects<Plane> for P[src]

impl Into<Plane> for Rectangle[src]

impl Serialize for Plane[src]

impl Shape for Plane[src]

fn center(&self) -> Point3<f32>[src]

Conceptually, it's hard to consider any point of a plane the "center".

impl Sub<Vector3<f32>> for Plane[src]

type Output = Self

The resulting type after applying the - operator.

impl SubAssign<Vector3<f32>> for Plane[src]

Auto Trait Implementations

impl RefUnwindSafe for Plane

impl Send for Plane

impl Sync for Plane

impl Unpin for Plane

impl UnwindSafe for Plane

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.