From e4186c24976c11fac8f66f441fc485efc5575a15 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Thu, 5 Jan 2012 23:37:47 +0000 Subject: [PATCH] - Changed catmull rom interpolation to use floats instead of doubles because somehow it was failing on android... git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8981 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/math/FastMath.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/core/com/jme3/math/FastMath.java b/engine/src/core/com/jme3/math/FastMath.java index b53c8bf18..6043d57d6 100644 --- a/engine/src/core/com/jme3/math/FastMath.java +++ b/engine/src/core/com/jme3/math/FastMath.java @@ -227,9 +227,9 @@ final public class FastMath { * @return catmull-Rom interpolation */ public static float interpolateCatmullRom(float u, float T, float p0, float p1, float p2, float p3) { - double c1, c2, c3, c4; + float c1, c2, c3, c4; c1 = p1; - c2 = -1.0 * T * p0 + T * p2; + c2 = -1.0f * T * p0 + T * p2; c3 = 2 * T * p0 + (T - 3) * p1 + (3 - 2 * T) * p2 + -T * p3; c4 = -T * p0 + (2 - T) * p1 + (T - 2) * p2 + T * p3;