[][src]Struct ncollide3d::query::Ray

pub struct Ray<N: Real> {
    pub origin: Point<N>,
    pub dir: Vector<N>,
}

A Ray.

Fields

Starting point of the ray.

Direction of the ray.

Methods

impl<N: Real> Ray<N>
[src]

Creates a new ray starting from origin and with the direction dir. dir must be normalized.

Transforms this ray by the given isometry.

Transforms this ray by the inverse of the given isometry.

Translates this ray by the given vector. Its direction is left unchanged.

Computes the point at the given parameter on this line.

This computes self.origin + self.dir * t.

Trait Implementations

impl<N: Copy + Real> Copy for Ray<N>
[src]

impl<N: Clone + Real> Clone for Ray<N>
[src]

Performs copy-assignment from source. Read more

impl<N: Debug + Real> Debug for Ray<N>
[src]

Auto Trait Implementations

impl<N> Send for Ray<N> where
    N: Scalar

impl<N> Sync for Ray<N> where
    N: Scalar

Blanket Implementations

impl<T> From for T
[src]

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Downcast for T where
    T: Any

impl<T> Same for T

Should always be Self