Trait BvhLeafCost

Source
pub trait BvhLeafCost {
    // Required method
    fn cost(&self) -> f32;
}
Expand description

Cost associated to a BVH leaf during best-first traversal.

Required Methods§

Source

fn cost(&self) -> f32

The cost value associated to the leaf.

Best-first searches for the leaf with the lowest cost.

Implementations on Foreign Types§

Source§

impl BvhLeafCost for f32

Source§

fn cost(&self) -> f32

Source§

impl<T> BvhLeafCost for (f32, T)

Source§

fn cost(&self) -> f32

Implementors§