Struct ncollide::query::Ray [] [src]

pub struct Ray<P> where
    P: Point
{ pub origin: P, pub dir: <P as Point>::Vector, }

A Ray.

Fields

Starting point of the ray.

Direction of the ray.

Methods

impl<P> Ray<P> where
    P: Point
[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<P> Clone for Ray<P> where
    P: Clone + Point,
    <P as Point>::Vector: Clone
[src]

impl<P> Copy for Ray<P> where
    P: Copy + Point,
    <P as Point>::Vector: Copy
[src]

impl<P> Decodable for Ray<P> where
    P: Decodable + Point,
    <P as Point>::Vector: Decodable
[src]

impl<P> Encodable for Ray<P> where
    P: Encodable + Point,
    <P as Point>::Vector: Encodable
[src]

impl<P> Debug for Ray<P> where
    P: Debug + Point,
    <P as Point>::Vector: Debug
[src]