pub trait Point3 {
// Required methods
fn new(x: f32, y: f32, z: f32) -> Self;
fn x(&self) -> f32;
fn y(&self) -> f32;
fn z(&self) -> f32;
}Expand description
Trait to aid with using arbitrary 3D point types on a TriangleMesh.
Required Methods§
fn new(x: f32, y: f32, z: f32) -> Self
fn x(&self) -> f32
fn y(&self) -> f32
fn z(&self) -> f32
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.