diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2020-11-21 16:06:02 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2021-10-20 12:58:19 +0300 |
commit | dfa1c7e554fcc3ddd40780fb8555cdd6e90eaba3 (patch) | |
tree | eb3927f1f151e21e131f064304321b4c57f249fa /source/blender/blenlib/BLI_math_matrix.h | |
parent | 6cd191a660394042a9df701d7ee9164881fc316b (diff) |
Split and extend unit tests for vec_roll_to_mat3_normalized.
Separate the huge test into huge logical parts and add more cases
to check. Also add a utility to check that the matrix is orthogonal,
with arbitrary epsilon values and calculations in double.
A couple of tests deliberately fail, to be fixed in following commits.
Ref D9551
Diffstat (limited to 'source/blender/blenlib/BLI_math_matrix.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_matrix.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_matrix.h b/source/blender/blenlib/BLI_math_matrix.h index 2b0c3db21ee..241acebffa3 100644 --- a/source/blender/blenlib/BLI_math_matrix.h +++ b/source/blender/blenlib/BLI_math_matrix.h @@ -57,6 +57,7 @@ void copy_m4_m4_db(double m1[4][4], const double m2[4][4]); void copy_m3_m3d(float m1[3][3], const double m2[3][3]); /* float->double */ +void copy_m3d_m3(double m1[3][3], const float m2[3][3]); void copy_m4d_m4(double m1[4][4], const float m2[4][4]); void swap_m3m3(float m1[3][3], float m2[3][3]); @@ -291,6 +292,7 @@ float determinant_m3( float a1, float a2, float a3, float b1, float b2, float b3, float c1, float c2, float c3); float determinant_m3_array(const float m[3][3]); float determinant_m4_mat3_array(const float m[4][4]); +double determinant_m3_array_db(const double m[3][3]); float determinant_m4(const float m[4][4]); #define PSEUDOINVERSE_EPSILON 1e-8f |