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;
}

Required Methods§

source

fn infinity() -> Self

source

fn distance(&self) -> f32

source

fn copy_with_distance(&self, distance: f32) -> Self

source

fn multiply_distance_by(&self, factor: f32) -> Self

source

fn material(&self) -> Material

source

fn lerp(&self, b: &Self, t: f32) -> Self

source

fn new_with_distance(material: Material, distance: f32) -> Self

source

fn is_distance_finite(&self) -> bool

Implementations on Foreign Types§

source§

impl SignedDistance for f32

source§

fn infinity() -> Self

source§

fn distance(&self) -> f32

source§

fn material(&self) -> Material

source§

fn copy_with_distance(&self, distance: f32) -> Self

source§

fn multiply_distance_by(&self, factor: f32) -> Self

source§

fn new_with_distance(_material: Material, distance: f32) -> Self

source§

fn lerp(&self, b: &Self, t: f32) -> Self

source§

fn is_distance_finite(&self) -> bool

Implementors§