Point3

Trait Point3 

Source
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§

Source

fn new(x: f32, y: f32, z: f32) -> Self

Source

fn x(&self) -> f32

Source

fn y(&self) -> f32

Source

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.

Implementors§