[][src]Struct cam_geom::Ray

pub struct Ray<Coords, R: RealField> {
    pub center: MatrixMN<R, U1, U3>,
    pub direction: MatrixMN<R, U1, U3>,
    // some fields omitted

A single ray. Can be in any CoordinateSystem.

A RayBundle with only one ray can be converted to this with RayBundle::to_single_ray().


center: MatrixMN<R, U1, U3>

The center (origin) of the ray.

direction: MatrixMN<R, U1, U3>

The direction of the ray.


impl<Coords, R: RealField> Ray<Coords, R>[src]

pub fn new(center: MatrixMN<R, U1, U3>, direction: MatrixMN<R, U1, U3>) -> Self[src]

Create a new ray from center (origin) and direction.

Auto Trait Implementations

impl<Coords, R> RefUnwindSafe for Ray<Coords, R> where
    Coords: RefUnwindSafe,
    R: RefUnwindSafe + Scalar

impl<Coords, R> Send for Ray<Coords, R> where
    Coords: Send,
    R: Scalar

impl<Coords, R> Sync for Ray<Coords, R> where
    Coords: Sync,
    R: Scalar

impl<Coords, R> Unpin for Ray<Coords, R> where
    Coords: Unpin,
    R: Scalar + Unpin

impl<Coords, R> UnwindSafe for Ray<Coords, R> where
    Coords: UnwindSafe,
    R: Scalar + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,