[][src]Struct rs_math3d::primitives::Plane

#[repr(C)]pub struct Plane<T: Scalar> { /* fields omitted */ }

Plane

Implementations

impl<T: Scalar> Plane<T>[src]

pub fn new(n: &Vector3<T>, p: &Vector3<T>) -> Self[src]

pub fn normal(&self) -> Vector3<T>[src]

pub fn constant(&self) -> T[src]

pub fn fromTri(v0: &Vector3<T>, v1: &Vector3<T>, v2: &Vector3<T>) -> Self[src]

pub fn fromQuad(
    v0: &Vector3<T>,
    v1: &Vector3<T>,
    v2: &Vector3<T>,
    v3: &Vector3<T>
) -> Self
[src]

pub fn intersectRay(&self, r: &Ray<T, Vector3<T>>) -> Option<Vector3<T>>[src]

Trait Implementations

impl<T: Clone + Scalar> Clone for Plane<T>[src]

impl<T: Copy + Scalar> Copy for Plane<T>[src]

impl<T: FloatScalar> Distance<T, Vector3<T>> for Plane<T>[src]

Distance Queries

Auto Trait Implementations

impl<T> Send for Plane<T> where
    T: Send

impl<T> Sync for Plane<T> where
    T: Sync

impl<T> Unpin for Plane<T> where
    T: Unpin

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> From<T> for T[src]

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

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.