[][src]Trait sdfu::mathtypes::Vec

pub trait Vec<T>: Sized + Copy + Neg<Output = Self> + Mul<T, Output = Self> + Add<Self, Output = Self> + Sub<Self, Output = Self> + Mul<T, Output = Self> + Div<T, Output = Self> + MaxMin + Zero + One + Clamp {
    type Dimension: Dimension;
    type Vec2: Vec2<T>;
    type Vec3: Vec3<T>;
    fn dot(&self, other: Self) -> T;
fn magnitude(&self) -> T;
fn abs(&self) -> Self;
fn normalized(&self) -> Self; }

Functionality that should be shared between all vector types.

Associated Types

type Dimension: Dimension

type Vec2: Vec2<T>

type Vec3: Vec3<T>

Loading content...

Required methods

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

fn magnitude(&self) -> T

fn abs(&self) -> Self

fn normalized(&self) -> Self

Loading content...

Implementors

Loading content...