[−][src]Struct ncollide3d::query::ray_internal::Ray
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: 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>
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>
impl<N: Debug + Real> Debug for Ray<N>
[src]
impl<N: Debug + Real> Debug for Ray<N>
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
[src]
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
[src]
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
[src]
fn from_subset(element: &SS) -> SP
impl<T> Same for T
[src]
impl<T> Same for T
type Output = T
Should always be Self