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

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 addVV(l: &Self, r: &Self) -> Self;
fn subVV(l: &Self, r: &Self) -> Self;
fn mulVV(l: &Self, r: &Self) -> Self;
fn divVV(l: &Self, r: &Self) -> Self;
fn mulVF(l: &Self, r: T) -> Self;
fn divVF(l: &Self, r: T) -> Self;
fn remVV(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

fn addVV(l: &Self, r: &Self) -> Self

fn subVV(l: &Self, r: &Self) -> Self

fn mulVV(l: &Self, r: &Self) -> Self

fn divVV(l: &Self, r: &Self) -> Self

fn mulVF(l: &Self, r: T) -> Self

fn divVF(l: &Self, r: T) -> Self

fn remVV(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

Loading content...

Provided methods

fn length(&self) -> T

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...