Struct collision::Ray [] [src]

pub struct Ray<S, P, V> {
    pub origin: P,
    pub direction: V,
    // some fields omitted
}

A generic ray starting at origin and extending infinitely in direction.

Fields

Methods

impl<S, V, P> Ray<S, P, V> where S: BaseNum, V: VectorSpace<Scalar=S>, P: EuclideanSpace<Scalar=S, Diff=V>
[src]

Trait Implementations

impl<S: Encodable, P: Encodable, V: Encodable> Encodable for Ray<S, P, V>
[src]

impl<S: Decodable, P: Decodable, V: Decodable> Decodable for Ray<S, P, V>
[src]

impl<S: Copy, P: Copy, V: Copy> Copy for Ray<S, P, V>
[src]

impl<S: Clone, P: Clone, V: Clone> Clone for Ray<S, P, V>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: PartialEq, P: PartialEq, V: PartialEq> PartialEq for Ray<S, P, V>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.