pub trait Intersection<T, Other> {
// Required method
fn intersection(&self, other: &Other) -> Option<T>;
}Expand description
Trait for producing intersection results.
Required Methods§
Sourcefn intersection(&self, other: &Other) -> Option<T>
fn intersection(&self, other: &Other) -> Option<T>
Returns the intersection result, or None if there is no intersection.
Implementors§
impl<T: FloatScalar> Intersection<(T, Vector3<T>), Tri3<T>> for Ray<T, Vector3<T>>
Ray-Triangle Intersection Test Routines Different optimizations of my and Ben Trumbore’s code from journals of graphics tools (JGT) http://www.acm.org/jgt/ by Tomas Moller, May 2000