Matrix3

qm::m::m3

Type Alias Matrix3 

Source
pub type Matrix3<F> = [[F; 3]; 3];
Expand description

Matrix3

Trait Implementations§

Source§

impl<F: Float + Debug + Sum> TMatrix<F> for Matrix3<F>

TMatrix for Matrix3

Source§

fn colmajor3(m: Vec<Vector3<F>>) -> Self
where Self: Sized,

constructor col major from v3 (move)

Source§

fn rowmajor3(m: Vec<Vector3<F>>) -> Self
where Self: Sized,

constructor row major from v3 (move)

Source§

fn col_major(m: &Vec<Vec<F>>) -> Self

constructor col major

Source§

fn row_major(m: &Vec<Vec<F>>) -> Self

constructor row major

Source§

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

constructor row major

Source§

fn identity() -> Self

constructor

Source§

fn prec_eq(&self, e: F, m: &impl TMatrix<F>) -> bool

check equal with precision

Source§

fn mev3(&self) -> &[Vector3<F>]

like as slice v3

Source§

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

m dot self

Source§

fn rowv3(&self, j: usize) -> Vector3<F>

row to v3

Source§

fn colv3(&self, i: usize) -> Vector3<F>

col to v3

Source§

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

to_vec

Source§

fn colmajor4(_m: Vec<Vector4<F>>) -> Self
where Self: Sized,

constructor col major from v4 (move)
Source§

fn rowmajor4(_m: Vec<Vector4<F>>) -> Self
where Self: Sized,

constructor row major from v4 (move)
Source§

fn mev4(&self) -> &[Vector4<F>]

like as slice v4
Source§

fn rowv4(&self, _j: usize) -> Vector4<F>

row to v4
Source§

fn colv4(&self, _i: usize) -> Vector4<F>

col to v4
Source§

fn transpose(&self) -> Self
where Self: Sized,

transpose
Source§

fn det(&self) -> F

det
Source§

fn inv(&self, p: F) -> Option<Self>
where Self: Sized,