[][src]Trait arctk::geom::properties::trace::Trace

pub trait Trace {
    fn hit(&self, ray: &Ray) -> bool;
fn dist(&self, ray: &Ray) -> Option<f64>;
fn dist_side(&self, ray: &Ray) -> Option<(f64, Side)>; }

Trace trait implementation. Types implementing this trait can be traced using 'Ray's.

Required methods

fn hit(&self, ray: &Ray) -> bool

Determine if a ray hit occurs.

fn dist(&self, ray: &Ray) -> Option<f64>

Distance to the surface along the ray's line of travel.

fn dist_side(&self, ray: &Ray) -> Option<(f64, Side)>

Distance to the surface along the ray's line of travel and side of collision.

Loading content...

Implementors

impl Trace for Cube[src]

impl Trace for Mesh[src]

impl Trace for SmoothTriangle[src]

impl Trace for Triangle[src]

Loading content...