[−][src]Type Definition quick_maths::Mat3
type Mat3<T = DefaultFloat> = Matrix<3, 3, T>;
3x3 Matrix
Implementations
impl<T: Float> Mat3<T>
[src]
pub fn new(c0: Vec3<T>, c1: Vec3<T>, c2: Vec3<T>) -> Self
[src]
pub fn det(&self) -> T
[src]
Computes the determinant of this matrix
pub fn inv(&self) -> Self
[src]
Inverts this matrix, does not handle non-invertible matrices
pub fn rot(around: &Vec3<T>, cos_t: T) -> Self
[src]
pub fn scale(by: &Vec3<T>) -> Self
[src]
pub fn translate(by: &Vec2<T>) -> Self
[src]
Translation operator for 2 space
pub fn project(normal: &Vec3<T>) -> Self
[src]
pub fn from_quat(q: Quat<T>) -> Self
[src]
https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation Converts a quaternion into an equivalent matrix