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

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.