Struct ncollide3d::query::Ray [−][src]
A Ray.
Fields
origin: Point<N>Starting point of the ray.
dir: Vector<N>Direction of the ray.
Implementations
impl<N: RealField> Ray<N>[src]
impl<N: RealField> 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.
pub fn point_at(&self, t: N) -> Point<N>[src]
Computes the point at the given parameter on this line.
This computes self.origin + self.dir * t.
Trait Implementations
Auto Trait Implementations
impl<N> RefUnwindSafe for Ray<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Ray<N>
impl<N> Sync for Ray<N>
impl<N> Unpin for Ray<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Ray<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync, [src]
impl<T> DowncastSync for T where
T: Any + Send + Sync, [src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]pub fn to_subset(&self) -> Option<SS>[src]
pub fn is_in_subset(&self) -> bool[src]
pub fn to_subset_unchecked(&self) -> SS[src]
pub fn from_subset(element: &SS) -> SP[src]
impl<T> Slottable for T where
T: Copy, [src]
T: Copy,