Struct ncollide2d::query::Ray[][src]

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.

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Auto Trait Implementations

impl<N> Send for Ray<N>

impl<N> Sync for Ray<N>