Struct ncollide2df64::ray::Ray
pub struct Ray { orig: V, dir: V, }
A Ray.
Fields
orig | Starting point of the ray. |
dir | Direction of the ray. |
Methods
impl Ray
fn new(orig: V, dir: V) -> Ray
Creates a new ray starting from orig
and with the direction dir
. dir
must be
normalized.
Trait Implementations
impl ToStr for Ray
Automatically derived.
fn to_str(&self) -> ~str
impl<__E: Encoder> Encodable<__E> for Ray
Automatically derived.
fn encode(&self, __arg_0: &mut __E)
impl<__D: Decoder> Decodable<__D> for Ray
Automatically derived.