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]

[src]

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

[src]

Transforms this ray by the given isometry.

[src]

Transforms this ray by the inverse of the given isometry.

[src]

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

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

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>