Struct nalgebra::Mat2
[−]
[src]
pub struct Mat2<N> { pub m11: N, pub m21: N, pub m12: N, pub m22: N, }
Square matrix of dimension 2.
Fields
m11 | |
m21 | |
m12 | |
m22 |
Methods
impl<N> Mat2<N>
impl<N> Mat2<N>
fn as_array(&self) -> &[[N; 2]; 2]
[−]
View this matrix as a column-major array of arrays.
fn as_array_mut<'a>(&'a mut self) -> &'a mut [[N; 2]; 2]
[−]
View this matrix as a column-major mutable array of arrays.
fn from_array_ref(array: &[[N; 2]; 2]) -> &Mat2<N>
[−]
View a column-major array of array as a vector.
fn from_array_mut(array: &mut [[N; 2]; 2]) -> &mut Mat2<N>
[−]
View a column-major array of array as a mutable vector.