diff options
author | Tiago Chaves <laurelkeys> | 2020-02-20 04:48:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-20 05:58:46 +0300 |
commit | 0115568ca6537260b2f177bf59edd55d07904099 (patch) | |
tree | 8e5e184f78643e338ca5c426ae967b19c9a143ac /source/blender/blenlib/BLI_math_matrix.h | |
parent | e233e492df50b9c49bb5c7808aab0ff87a6c8608 (diff) |
BLI_math: add 2x2 matrix utilities
Diffstat (limited to 'source/blender/blenlib/BLI_math_matrix.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_matrix.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_matrix.h b/source/blender/blenlib/BLI_math_matrix.h index 73731255882..7845e0998e0 100644 --- a/source/blender/blenlib/BLI_math_matrix.h +++ b/source/blender/blenlib/BLI_math_matrix.h @@ -48,6 +48,8 @@ void copy_m3_m3(float R[3][3], const float A[3][3]); void copy_m4_m4(float R[4][4], const float A[4][4]); void copy_m3_m4(float R[3][3], const float A[4][4]); void copy_m4_m3(float R[4][4], const float A[3][3]); +void copy_m3_m2(float R[3][3], const float A[2][2]); +void copy_m4_m2(float R[4][4], const float A[2][2]); void copy_m4_m4_db(double m1[4][4], const double m2[4][4]); @@ -245,6 +247,10 @@ void transpose_m4_m4(float R[4][4], const float A[4][4]); int compare_m4m4(const float mat1[4][4], const float mat2[4][4], float limit); +void normalize_m2_ex(float R[2][2], float r_scale[2]) ATTR_NONNULL(); +void normalize_m2(float R[2][2]) ATTR_NONNULL(); +void normalize_m2_m2_ex(float R[2][2], const float A[2][2], float r_scale[2]) ATTR_NONNULL(); +void normalize_m2_m2(float R[2][2], const float A[2][2]) ATTR_NONNULL(); void normalize_m3_ex(float R[3][3], float r_scale[3]) ATTR_NONNULL(); void normalize_m3(float R[3][3]) ATTR_NONNULL(); void normalize_m3_m3_ex(float R[3][3], const float A[3][3], float r_scale[3]) ATTR_NONNULL(); |