Struct cam_geom::Ray [−][src]
pub struct Ray<Coords, R: RealField> {
pub center: SMatrix<R, 1, 3>,
pub direction: SMatrix<R, 1, 3>,
// some fields omitted
}Expand description
A single ray. Can be in any CoordinateSystem.
A RayBundle with only one ray can be converted to this with
RayBundle::to_single_ray().
Fields
center: SMatrix<R, 1, 3>The center (origin) of the ray.
direction: SMatrix<R, 1, 3>The direction of the ray.
Implementations
Auto Trait Implementations
impl<Coords, R> RefUnwindSafe for Ray<Coords, R> where
Coords: RefUnwindSafe,
R: RefUnwindSafe,
impl<Coords, R> UnwindSafe for Ray<Coords, R> where
Coords: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self is actually part of its subset T (and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self to the equivalent element of its superset.
