SignedDistance

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

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

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§