Trait saft_sdf::SignedDistance
source · pub trait SignedDistance: Copy {
// Required methods
fn infinity() -> Self;
fn distance(&self) -> f32;
fn copy_with_distance(&self, distance: f32) -> Self;
fn multiply_distance_by(&self, factor: f32) -> Self;
fn material(&self) -> Material;
fn lerp(&self, b: &Self, t: f32) -> Self;
fn new_with_distance(material: Material, distance: f32) -> Self;
fn is_distance_finite(&self) -> bool;
}