Struct ncollide2d::query::Ray [−][src]
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]
impl<N: Real> Ray<N>
pub fn new(origin: Point<N>, dir: Vector<N>) -> Ray<N>
[src]
pub fn new(origin: Point<N>, dir: Vector<N>) -> Ray<N>
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]
pub fn transform_by(&self, m: &Isometry<N>) -> Self
Transforms this ray by the given isometry.
pub fn inverse_transform_by(&self, m: &Isometry<N>) -> Self
[src]
pub fn inverse_transform_by(&self, m: &Isometry<N>) -> Self
Transforms this ray by the inverse of the given isometry.
pub fn translate_by(&self, v: Vector<N>) -> Self
[src]
pub fn translate_by(&self, v: Vector<N>) -> Self
Translates this ray by the given vector. Its direction is left unchanged.
Trait Implementations
impl<N: Debug + Real> Debug for Ray<N>
[src]
impl<N: Debug + Real> Debug for Ray<N>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<N: Clone + Real> Clone for Ray<N>
[src]
impl<N: Clone + Real> Clone for Ray<N>
fn clone(&self) -> Ray<N>
[src]
fn clone(&self) -> Ray<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<N: Copy + Real> Copy for Ray<N>
[src]
impl<N: Copy + Real> Copy for Ray<N>