pub trait SignedDistanceFunction2d<T>where
    T: Scalar,
{ fn eval(&self, x: &Point2<T>) -> T; fn gradient(&self, x: &Point2<T>) -> Option<Vector2<T>>; fn union<Other>(self, other: Other) -> SdfUnion<Self, Other>
    where
        Self: Sized,
        Other: Sized + SignedDistanceFunction2d<T>
, { ... } }

Required Methods§

source

fn eval(&self, x: &Point2<T>) -> T

source

fn gradient(&self, x: &Point2<T>) -> Option<Vector2<T>>

Provided Methods§

source

fn union<Other>(self, other: Other) -> SdfUnion<Self, Other>where
    Self: Sized,
    Other: Sized + SignedDistanceFunction2d<T>,

Implementors§

source§

impl<T> SignedDistanceFunction2d<T> for SdfAxisAlignedBox<T>where
    T: Real,

source§

impl<T> SignedDistanceFunction2d<T> for SdfCircle<T>where
    T: Real,

source§

impl<T, Left, Right> SignedDistanceFunction2d<T> for SdfUnion<Left, Right>where
    T: Real,
    Left: SignedDistanceFunction2d<T>,
    Right: SignedDistanceFunction2d<T>,