strafe-project/fixed_wide_vectors/src/matrix.rs
2024-09-05 15:43:26 -07:00

10 lines
266 B
Rust

#[derive(Clone,Copy,Hash,Eq,PartialEq)]
pub struct Matrix<const X:usize,const Y:usize,T>{
pub(crate) array:[[T;Y];X],
}
crate::impl_matrix!();
//Special case 3x3 matrix operations because I cba to write macros for the arbitrary cases
//crate::impl_matrix_3x3!();