pub trait BvhLeafCost {
// Required method
fn cost(&self) -> f32;
}Expand description
Cost associated to a BVH leaf during best-first traversal.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
impl BvhLeafCost for RayIntersection
Available on crate feature
alloc only.impl BvhLeafCost for ShapeCastHit
Available on crate feature
alloc only.