Skip to main content

FlakeMath

Trait FlakeMath 

Source
pub trait FlakeMath: Sized {
    // Required methods
    fn normalize_or_zero(&self) -> Self;
    fn one() -> Self;
    fn neg_one() -> Self;
}

Required Methods§

Source

fn normalize_or_zero(&self) -> Self

Source

fn one() -> Self

Source

fn neg_one() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> FlakeMath for T
where T: InnerSpace + Array<Element = <T as VectorSpace>::Scalar> + Copy, T::Scalar: BaseFloat,