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:
authorCampbell Barton <ideasman42@gmail.com>2014-08-12 09:58:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-08-12 09:58:53 +0400
commiteadfddd02a528f1c5450d3795905dbdf669a0062 (patch)
tree92e5c6507f1b640944068d084dd7b16bad6a5d95 /source/blender/blenlib
parentab06ec7a24821bd0ee968e72e28c0d9298c68b7d (diff)
Cleanup: magic numbers
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/math_matrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/math_matrix.c b/source/blender/blenlib/intern/math_matrix.c
index 152b31754bb..09c581a589b 100644
--- a/source/blender/blenlib/intern/math_matrix.c
+++ b/source/blender/blenlib/intern/math_matrix.c
@@ -1360,7 +1360,7 @@ float mat3_to_scale(float mat[3][3])
{
/* unit length vector */
float unit_vec[3];
- copy_v3_fl(unit_vec, 0.577350269189626f);
+ copy_v3_fl(unit_vec, (float)(1.0 / M_SQRT3));
mul_m3_v3(mat, unit_vec);
return len_v3(unit_vec);
}
@@ -1369,7 +1369,7 @@ float mat4_to_scale(float mat[4][4])
{
/* unit length vector */
float unit_vec[3];
- copy_v3_fl(unit_vec, 0.577350269189626f);
+ copy_v3_fl(unit_vec, (float)(1.0 / M_SQRT3));
mul_mat3_m4_v3(mat, unit_vec);
return len_v3(unit_vec);
}