pub trait AbstractMathCsGeneric {
// Required methods
fn sub(&self, other: &Self) -> Self;
fn add(&self, other: &Self) -> Self;
fn dot(&self, other: &Self) -> f64;
fn r_sq(&self) -> f64;
fn r(&self) -> f64;
fn normalize_r_projection(&self) -> Self;
fn angle_between(&self, other: &Self) -> f64;
}Expand description
📚 【 POL】: Kontrakt generyczny dla uniwersalnej matematyki wektorowej (np. dodawanie). 📚 【 ENG】: Generic contract for universal vector mathematics.
Required Methods§
fn sub(&self, other: &Self) -> Self
fn add(&self, other: &Self) -> Self
fn dot(&self, other: &Self) -> f64
fn r_sq(&self) -> f64
fn r(&self) -> f64
fn normalize_r_projection(&self) -> Self
fn angle_between(&self, other: &Self) -> f64
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.