diff --git a/build.gradle b/build.gradle index 5ac62d0c..fb479335 100644 --- a/build.gradle +++ b/build.gradle @@ -24,7 +24,7 @@ if (buildProfile == 'experimental') { } group 'org.joml' -version '1.10.8' +version '1.10.9-SNAPSHOT' configurations { buildhelper diff --git a/src/main/java/org/joml/Quaternionf.java b/src/main/java/org/joml/Quaternionf.java index f0ed1ba5..57286fec 100644 --- a/src/main/java/org/joml/Quaternionf.java +++ b/src/main/java/org/joml/Quaternionf.java @@ -2111,8 +2111,8 @@ public Quaternionf slerp(Quaternionfc target, float alpha, Quaternionf dest) { float sinSqr = 1.0f - absCosom * absCosom; float sinom = Math.invsqrt(sinSqr); float omega = Math.atan2(sinSqr * sinom, absCosom); - scale0 = (float) (Math.sin((1.0 - alpha) * omega) * sinom); - scale1 = (float) (Math.sin(alpha * omega) * sinom); + scale0 = Math.sin((1.0f - alpha) * omega) * sinom; + scale1 = Math.sin(alpha * omega) * sinom; } else { scale0 = 1.0f - alpha; scale1 = alpha;