[][src]Struct rs_math3d::primitives::Ray

#[repr(C)]pub struct Ray<T: Scalar, V: Vector<T>> {
    pub start: V,
    pub direction: V,
    // some fields omitted
}

Ray

Fields

start: Vdirection: V

Implementations

impl<T: Scalar, V: Vector<T>> Ray<T, V>[src]

pub fn new(start: &V, direction: &V) -> Self[src]

impl<T: Scalar> Ray<T, Vector3<T>>[src]

pub fn intersectPlane(&self, p: &Plane<T>) -> Option<Vector3<T>>[src]

Trait Implementations

impl<T: Clone + Scalar, V: Clone + Vector<T>> Clone for Ray<T, V>[src]

impl<T: Copy + Scalar, V: Copy + Vector<T>> Copy for Ray<T, V>[src]

impl<T: FloatScalar> Intersect<Ray<T, Vector3<T>>> for Box3<T>[src]

Intersect Queries

impl<T: FloatScalar> Intersection<Vector3<T>, Tri3<T>> for Ray<T, Vector3<T>>[src]

Ray-Triangle Intersection Test Routines Different optimizations of my and Ben Trumbore's code from journals of graphics tools (JGT) http://www.acm.org/jgt/ by Tomas Moller, May 2000

Auto Trait Implementations

impl<T, V> Send for Ray<T, V> where
    T: Send,
    V: Send

impl<T, V> Sync for Ray<T, V> where
    T: Sync,
    V: Sync

impl<T, V> Unpin for Ray<T, V> where
    T: Unpin,
    V: 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.