Vector4

qm::v::v4

Type Alias Vector4 

Source
pub type Vector4<F> = [F; 4];
Expand description

Vector4

Trait Implementations§

Source§

impl<F: Float + Debug + Sum> TVector<F> for Vector4<F>

TVector for Vector4

Source§

fn new(v: &Vec<F>) -> Self

constructor

Source§

fn prec_eq(&self, e: F, v: &impl TVector<F>) -> bool

check equal with precision

Source§

fn to_vec(&self) -> Vec<F>

to_vec

Source§

fn me(&self) -> &[F]

like as slice

Source§

fn dot(&self, a: &impl TVector<F>) -> F

a dot self

Source§

fn dot_mv(&self, m: &impl TMatrix<F>) -> Self

m dot self

Source§

fn cross(&self, _b: &impl TVector<F>) -> Self

self cross b