Struct ncollide3d::query::Ray
[−]
[src]
pub struct Ray<N: Real> { pub origin: Point<N>, pub dir: Vector<N>, }
A Ray.
Fields
origin: Point<N>
Starting point of the ray.
dir: Vector<N>
Direction of the ray.
Methods
impl<N: Real> Ray<N>
[src]
pub fn new(origin: Point<N>, dir: Vector<N>) -> Ray<N>
[src]
Creates a new ray starting from origin
and with the direction dir
. dir
must be
normalized.
pub fn transform_by(&self, m: &Isometry<N>) -> Self
[src]
Transforms this ray by the given isometry.
pub fn inverse_transform_by(&self, m: &Isometry<N>) -> Self
[src]
Transforms this ray by the inverse of the given isometry.
pub fn translate_by(&self, v: Vector<N>) -> Self
[src]
Translates this ray by the given vector. Its direction is left unchanged.
Trait Implementations
impl<N: Debug + Real> Debug for Ray<N>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<N: Clone + Real> Clone for Ray<N>
[src]
fn clone(&self) -> Ray<N>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more