Skip to main content

AbstractMathCsGeneric

Trait AbstractMathCsGeneric 

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

Source

fn sub(&self, other: &Self) -> Self

Source

fn add(&self, other: &Self) -> Self

Source

fn dot(&self, other: &Self) -> f64

Source

fn r_sq(&self) -> f64

Source

fn r(&self) -> f64

Source

fn normalize_r_projection(&self) -> Self

Source

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.

Implementors§

Source§

impl<const N: usize> AbstractMathCsGeneric for Cs<N>
where Cs<N>: Dim,