Trait ImplicitSurface3

Source
pub trait ImplicitSurface3: Surface3 {
    // Required method
    fn signed_distance_local(&self, other_point: &Vector3D) -> f64;

    // Provided methods
    fn signed_distance(&self, other_point: &Vector3D) -> f64 { ... }
    fn closest_distance_local(&self, other_point: &Vector3D) -> f64 { ... }
    fn is_inside_local(&self, other_point: &Vector3D) -> bool { ... }
}
Expand description

Abstract base class for 3-D implicit surface.

Required Methods§

Source

fn signed_distance_local(&self, other_point: &Vector3D) -> f64

Returns signed distance from the given point \p otherPoint in local space.

Provided Methods§

Source

fn signed_distance(&self, other_point: &Vector3D) -> f64

Returns signed distance from the given point \p otherPoint.

Source

fn closest_distance_local(&self, other_point: &Vector3D) -> f64

Source

fn is_inside_local(&self, other_point: &Vector3D) -> bool

Implementors§