imlet/types/geometry/traits/signed_distance.rs
1/// Trait to expose a method to compute the signed distance.
2///
3/// This trait is used to allow object to be passed to an implicit model as a signed distance function.
4pub trait SignedDistance<T> {
5 /// Compute the signed distance from some coordinates.
6 fn signed_distance(&self, x: T, y: T, z: T) -> T;
7}