Skip to main content

BvhLeafCost

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§

Source§

impl BvhLeafCost for RayIntersection

Available on crate feature alloc only.
Source§

impl BvhLeafCost for ShapeCastHit

Available on crate feature alloc only.