[−][src]Struct ncollide_geometry::query::Ray
A Ray.
Fields
origin: P
Starting point of the ray.
dir: P::Vector
Direction of the ray.
Methods
impl<P: Point> Ray<P>
[src]
pub fn new(origin: P, dir: P::Vector) -> Ray<P>
[src]
Creates a new ray starting from origin
and with the direction dir
. dir
must be
normalized.
pub fn transform_by<M: Isometry<P>>(&self, m: &M) -> Self
[src]
Transforms this ray by the given isometry.
pub fn inverse_transform_by<M: Isometry<P>>(&self, m: &M) -> Self
[src]
Transforms this ray by the inverse of the given isometry.
pub fn translate_by(&self, v: P::Vector) -> Self
[src]
Translates this ray by the given vector. Its direction is left unchanged.
Trait Implementations
impl<P: Copy + Point> Copy for Ray<P> where
P::Vector: Copy,
[src]
P::Vector: Copy,
impl<P: Clone + Point> Clone for Ray<P> where
P::Vector: Clone,
[src]
P::Vector: Clone,
fn clone(&self) -> Ray<P>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<P: Debug + Point> Debug for Ray<P> where
P::Vector: Debug,
[src]
P::Vector: Debug,
Auto Trait Implementations
impl<P> Send for Ray<P> where
<P as Point>::Vector: Send,
<P as Point>::Vector: Send,
impl<P> Sync for Ray<P> where
<P as Point>::Vector: Sync,
<P as Point>::Vector: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Same for T
type Output = T
Should always be Self