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:
authorClément Foucault <foucault.clem@gmail.com>2018-10-28 21:27:14 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-10-28 23:48:22 +0300
commit2c545c0409a9bd44e815dbbd4eb7038797e65b23 (patch)
tree2c5f570f6c3c3dd8b3ade5c33f1a027951695ff9 /source/blender/blenlib
parent61e4e3178d4a496a416c360565afb8bbe7592422 (diff)
BLI: Add comment about to orthogonalize_m3/4
Diffstat (limited to 'source/blender/blenlib')
-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 48bc1a2928b..df7548a9387 100644
--- a/source/blender/blenlib/intern/math_matrix.c
+++ b/source/blender/blenlib/intern/math_matrix.c
@@ -1011,6 +1011,11 @@ int compare_m4m4(const float mat1[4][4], const float mat2[4][4], float limit)
return 0;
}
+/**
+ * Make an orthonormal matrix around the selected axis of the given matrix.
+ *
+ * \param axis: Axis to build the orthonormal basis around.
+ */
void orthogonalize_m3(float mat[3][3], int axis)
{
float size[3];
@@ -1095,6 +1100,11 @@ void orthogonalize_m3(float mat[3][3], int axis)
mul_v3_fl(mat[2], size[2]);
}
+/**
+ * Make an orthonormal matrix around the selected axis of the given matrix.
+ *
+ * \param axis: Axis to build the orthonormal basis around.
+ */
void orthogonalize_m4(float mat[4][4], int axis)
{
float size[3];