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 /source/gameengine/Ketsji/KX_OrientationInterpolator.cpp
parent0c19a043e8198018ae794145fc4f1e78d5f00923 (diff)
BGE clean up: use float version of trigonometric functions
Diffstat (limited to 'source/gameengine/Ketsji/KX_OrientationInterpolator.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_OrientationInterpolator.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/gameengine/Ketsji/KX_OrientationInterpolator.cpp b/source/gameengine/Ketsji/KX_OrientationInterpolator.cpp
index d2468d0317d..bcaa1e60e92 100644
--- a/source/gameengine/Ketsji/KX_OrientationInterpolator.cpp
+++ b/source/gameengine/Ketsji/KX_OrientationInterpolator.cpp
@@ -39,12 +39,12 @@ void KX_OrientationInterpolator::Execute(float currentTime) const
MT_Vector3 eul(m_ipos[0]->GetValue(currentTime),
m_ipos[1]->GetValue(currentTime),
m_ipos[2]->GetValue(currentTime));
- MT_Scalar ci = cos(eul[0]);
- MT_Scalar cj = cos(eul[1]);
- MT_Scalar ch = cos(eul[2]);
- MT_Scalar si = sin(eul[0]);
- MT_Scalar sj = sin(eul[1]);
- MT_Scalar sh = sin(eul[2]);
+ MT_Scalar ci = cosf(eul[0]);
+ MT_Scalar cj = cosf(eul[1]);
+ MT_Scalar ch = cosf(eul[2]);
+ MT_Scalar si = sinf(eul[0]);
+ MT_Scalar sj = sinf(eul[1]);
+ MT_Scalar sh = sinf(eul[2]);
MT_Scalar cc = ci*ch;
MT_Scalar cs = ci*sh;
MT_Scalar sc = si*ch;