[][src]Trait tiny_lib::vector::Vector

pub trait Vector: Add + Sub + Mul<f32> + AddAssign + SubAssign + MulAssign<f32> + Copy + Clone {
    const ZERO: Self;

    fn dot_product(v1: &Self, v2: &Self) -> f32;
fn len(&self) -> f32;
fn inv_len(&self) -> f32; }

Associated Constants

const ZERO: Self

Loading content...

Required methods

fn dot_product(v1: &Self, v2: &Self) -> f32

fn len(&self) -> f32

fn inv_len(&self) -> f32

Loading content...

Implementors

impl Vector for Vector1D[src]

impl Vector for Vector2D[src]

impl Vector for Vector3D[src]

Loading content...