Trait Targeted

Source
pub trait Targeted<T: Target> {
    // Required method
    fn target(&self) -> Option<(T, f64)>;
}
Expand description

The shape that could be put inside the specified bound.

Required Methods§

Source

fn target(&self) -> Option<(T, f64)>

Returns target shape and the brightness.

Brightness is used to compute ray attraction probability during the importance sampling process.

Implementors§

Source§

impl<T: Bound + Target, S: Shape + Bounded<T>, M: Material> Targeted<T> for Covered<S, M>