[][src]Type Definition embree::ray::Ray

type Ray = RTCRay;

Implementations

impl Ray[src]

pub fn new(origin: Vector3<f32>, dir: Vector3<f32>) -> Ray[src]

Create a new ray starting at origin and heading in direction dir

pub fn segment(
    origin: Vector3<f32>,
    dir: Vector3<f32>,
    tnear: f32,
    tfar: f32
) -> Ray
[src]