pub trait Vec3 {
// Required methods
fn sub(&self, other: &Self) -> Self;
fn add(&self, other: &Self) -> Self;
fn cross(&self, other: &Self) -> Self;
fn dot(&self, other: &Self) -> f64;
fn norm(&self) -> f64;
fn normalized(&self) -> Self;
fn scale(&self, lambda: f64) -> Self;
}Required Methods§
fn sub(&self, other: &Self) -> Self
fn add(&self, other: &Self) -> Self
fn cross(&self, other: &Self) -> Self
fn dot(&self, other: &Self) -> f64
fn norm(&self) -> f64
fn normalized(&self) -> Self
fn scale(&self, lambda: f64) -> Self
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.