pub trait ScalarField: Send + Sync {
// Required method
fn evaluate(&self, p: Vec3) -> f32;
// Provided method
fn gradient(&self, p: Vec3) -> Vec3 { ... }
}Expand description
A scalar field f(x,y,z) → f32. Isosurface at f=0.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".