[][src]Macro raytracer::ray

macro_rules! ray {
    ($origin:expr, $direction:expr) => { ... };
}

Shorthand for Ray::new.

Examples

let r = ray!(vec3!(0.0), vec3!(1.0));

assert_eq!(r, Ray::new(vec3!(0.0), vec3!(1.0)));