[][src]Struct all_is_cubes::raycast::Ray

pub struct Ray {
    pub origin: Point3<FreeCoordinate>,
    pub direction: Vector3<FreeCoordinate>,
}

A ray; a half-infinite line segment.

Fields

origin: Point3<FreeCoordinate>

The sole endpoint of the ray.

direction: Vector3<FreeCoordinate>

The direction in which the ray extends infinitely.

The meaning, if any, of the magnitude of this vector depends on context.

Implementations

impl Ray[src]

pub fn cast(&self) -> Raycaster

Notable traits for Raycaster

impl Iterator for Raycaster type Item = RaycastStep;
[src]

Construct a Raycaster initialized with this ray.

Trait Implementations

impl Add<Vector3<f64>> for Ray[src]

type Output = Self

The resulting type after applying the + operator.

fn add(self, offset: Vector3<FreeCoordinate>) -> Self[src]

Translate this ray; add the argument to its origin.

impl Clone for Ray[src]

impl Copy for Ray[src]

impl Debug for Ray[src]

impl PartialEq<Ray> for Ray[src]

impl StructuralPartialEq for Ray[src]

Auto Trait Implementations

impl RefUnwindSafe for Ray

impl Send for Ray

impl Sync for Ray

impl Unpin for Ray

impl UnwindSafe for Ray

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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>,