2024-09-05 15:43:02 -07:00
|
|
|
#[derive(Clone,Copy,Hash,Eq,PartialEq)]
|
2024-09-05 13:36:38 -07:00
|
|
|
pub struct Matrix<const X:usize,const Y:usize,T>{
|
2024-09-06 10:52:17 -07:00
|
|
|
pub(crate) array:[[T;X];Y],
|
2024-08-30 13:02:48 -07:00
|
|
|
}
|
|
|
|
|
2024-09-05 13:36:38 -07:00
|
|
|
crate::impl_matrix!();
|
2024-09-04 13:38:29 -07:00
|
|
|
|
|
|
|
//Special case 3x3 matrix operations because I cba to write macros for the arbitrary cases
|
2024-09-06 11:25:46 -07:00
|
|
|
crate::impl_matrix_3x3!();
|