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:
authorJorge Bernal <jbernalmartinez@gmail.com>2015-12-16 03:52:30 +0300
committerJorge Bernal <jbernalmartinez@gmail.com>2015-12-16 03:53:48 +0300
commitee59df521f2af10d6a34158a39bf21dd5ae847a3 (patch)
treef48810bfb9d6df03542517d575d61b46b3584d89 /intern/moto/include/MT_Matrix3x3.inl
parent0c19a043e8198018ae794145fc4f1e78d5f00923 (diff)
BGE clean up: use float version of trigonometric functions
Diffstat (limited to 'intern/moto/include/MT_Matrix3x3.inl')
-rw-r--r--intern/moto/include/MT_Matrix3x3.inl4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/moto/include/MT_Matrix3x3.inl b/intern/moto/include/MT_Matrix3x3.inl
index 088c4b098c8..614e4f93a81 100644
--- a/intern/moto/include/MT_Matrix3x3.inl
+++ b/intern/moto/include/MT_Matrix3x3.inl
@@ -9,7 +9,7 @@ GEN_INLINE MT_Quaternion MT_Matrix3x3::getRotation() const {
if (trace > 0.0f)
{
- MT_Scalar s = sqrt(trace + MT_Scalar(1.0f));
+ MT_Scalar s = sqrtf(trace + MT_Scalar(1.0f));
result[3] = s * MT_Scalar(0.5f);
s = MT_Scalar(0.5f) / s;
@@ -28,7 +28,7 @@ GEN_INLINE MT_Quaternion MT_Matrix3x3::getRotation() const {
int j = next[i];
int k = next[j];
- MT_Scalar s = sqrt(m_el[i][i] - m_el[j][j] - m_el[k][k] + MT_Scalar(1.0f));
+ MT_Scalar s = sqrtf(m_el[i][i] - m_el[j][j] - m_el[k][k] + MT_Scalar(1.0f));
result[i] = s * MT_Scalar(0.5f);