Struct cgmath::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

origin
direction

Methods

impl<S: BaseNum, V: Vector<S>, P: Point<S, V>> Ray<S, P, V>

fn new(origin: P, direction: V) -> Ray<S, P, V>

Trait Implementations

Derived Implementations

impl<S: Decodable, P: Decodable, V: Decodable> Decodable for Ray<S, P, V>

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Ray<S, P, V>, __D::Error>

impl<S: Encodable, P: Encodable, V: Encodable> Encodable for Ray<S, P, V>

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl<S: PartialEq, P: PartialEq, V: PartialEq> PartialEq for Ray<S, P, V>

fn eq(&self, __arg_0: &Ray<S, P, V>) -> bool

fn ne(&self, __arg_0: &Ray<S, P, V>) -> bool

impl<S: Clone, P: Clone, V: Clone> Clone for Ray<S, P, V>

fn clone(&self) -> Ray<S, P, V>

fn clone_from(&mut self, source: &Self)

impl<S: Copy, P: Copy, V: Copy> Copy for Ray<S, P, V>