rendiation
rendiation copied to clipboard
improve tolerance(or in other generic param's form) support in primitive intersection impl
Motivation
- Clippy complains float compare in intersections impl.
- Raytracing need abstaction of
epsilon
- Picking need raycast param like screen space tolerance
Resolved by: IntersectAble now has third generic parameter to support params used for intersection
pub trait IntersectAble<Target, Result, Parameter = ()> {
fn intersect(&self, other: &Target, param: &Parameter) -> Result;
}