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

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

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

Required methods

pub fn hit(&self, ray: &Ray) -> bool[src]

Determine if a ray hit occurs.

pub fn dist(&self, ray: &Ray) -> Option<f64>[src]

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

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

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...