Trait rs_math3d::vector::Vector[][src]

pub trait Vector<T: Scalar, Rhs = Self, Output = Self>: Add<Rhs, Output = Output> + Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Mul<T, Output = Output> + Div<Rhs, Output = Output> + Div<T, Output = Output> + Neg<Output = Output> + Clone + Copy {
    fn zero() -> Self;
fn add_vv(l: &Self, r: &Self) -> Self;
fn sub_vv(l: &Self, r: &Self) -> Self;
fn mul_vv(l: &Self, r: &Self) -> Self;
fn div_vv(l: &Self, r: &Self) -> Self;
fn mul_vs(l: &Self, r: T) -> Self;
fn div_vs(l: &Self, r: T) -> Self;
fn rem_vv(l: &Self, r: &Self) -> Self;
fn dot(l: &Self, r: &Self) -> T;
fn normalize(v: &Self) -> Self;
fn distance(l: &Self, r: &Self) -> T;
fn min(l: &Self, r: &Self) -> Self;
fn max(l: &Self, r: &Self) -> Self; fn length(&self) -> T { ... } }

Required methods

fn zero() -> Self[src]

fn add_vv(l: &Self, r: &Self) -> Self[src]

fn sub_vv(l: &Self, r: &Self) -> Self[src]

fn mul_vv(l: &Self, r: &Self) -> Self[src]

fn div_vv(l: &Self, r: &Self) -> Self[src]

fn mul_vs(l: &Self, r: T) -> Self[src]

fn div_vs(l: &Self, r: T) -> Self[src]

fn rem_vv(l: &Self, r: &Self) -> Self[src]

fn dot(l: &Self, r: &Self) -> T[src]

fn normalize(v: &Self) -> Self[src]

fn distance(l: &Self, r: &Self) -> T[src]

fn min(l: &Self, r: &Self) -> Self[src]

fn max(l: &Self, r: &Self) -> Self[src]

Loading content...

Provided methods

fn length(&self) -> T[src]

Loading content...

Implementors

impl<T: Scalar> Vector<T, Vector2<T>, Vector2<T>> for Vector2<T>[src]

impl<T: Scalar> Vector<T, Vector3<T>, Vector3<T>> for Vector3<T>[src]

impl<T: Scalar> Vector<T, Vector4<T>, Vector4<T>> for Vector4<T>[src]

Loading content...