fix compile without named fields

This commit is contained in:
Quaternions 2024-09-10 11:32:42 -07:00
parent fa8614891d
commit 4eaf8794f6
3 changed files with 4 additions and 0 deletions

View File

@ -13,4 +13,5 @@ crate::impl_matrix_extend!(3,2);
crate::impl_matrix_extend!(3,3);
//Special case 3x3 matrix operations because I cba to write macros for the arbitrary cases
#[cfg(feature="named-fields")]
crate::impl_matrix_3x3!();

View File

@ -63,6 +63,7 @@ fn wide_matrix_dot(){
}
#[test]
#[cfg(feature="named-fields")]
fn wide_matrix_det(){
let m=Matrix3::new([
[Planar64::from(1),Planar64::from(2),Planar64::from(3)],
@ -75,6 +76,7 @@ fn wide_matrix_det(){
}
#[test]
#[cfg(feature="named-fields")]
fn wide_matrix_adjugate(){
let m=Matrix3::new([
[Planar64::from(1),Planar64::from(2),Planar64::from(3)],

View File

@ -15,4 +15,5 @@ crate::impl_vector_extend!(2);
crate::impl_vector_extend!(3);
//cross product
#[cfg(feature="named-fields")]
crate::impl_vector_3!();