Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/intern/math_matrix.c')
-rw-r--r--source/blender/blenlib/intern/math_matrix.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_matrix.c b/source/blender/blenlib/intern/math_matrix.c
index f116c9b8443..1ec63f11c3d 100644
--- a/source/blender/blenlib/intern/math_matrix.c
+++ b/source/blender/blenlib/intern/math_matrix.c
@@ -722,6 +722,16 @@ void transpose_m4(float mat[4][4])
mat[3][2] = t;
}
+int compare_m4m4(float mat1[4][4], float mat2[4][4], float limit)
+{
+ if (compare_v4v4(mat1[0], mat2[0], limit))
+ if (compare_v4v4(mat1[1], mat2[1], limit))
+ if (compare_v4v4(mat1[2], mat2[2], limit))
+ if (compare_v4v4(mat1[3], mat2[3], limit))
+ return 1;
+ return 0;
+}
+
void orthogonalize_m3(float mat[3][3], int axis)
{
float size[3];