Skip to content

Commit 5886cdf

Browse files
committed
Avoid superfluous float cast
1 parent c3dd860 commit 5886cdf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (buildProfile == 'experimental') {
2424
}
2525

2626
group 'org.joml'
27-
version '1.10.8'
27+
version '1.10.9-SNAPSHOT'
2828

2929
configurations {
3030
buildhelper

src/main/java/org/joml/Quaternionf.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -2111,8 +2111,8 @@ public Quaternionf slerp(Quaternionfc target, float alpha, Quaternionf dest) {
21112111
float sinSqr = 1.0f - absCosom * absCosom;
21122112
float sinom = Math.invsqrt(sinSqr);
21132113
float omega = Math.atan2(sinSqr * sinom, absCosom);
2114-
scale0 = (float) (Math.sin((1.0 - alpha) * omega) * sinom);
2115-
scale1 = (float) (Math.sin(alpha * omega) * sinom);
2114+
scale0 = Math.sin((1.0f - alpha) * omega) * sinom;
2115+
scale1 = Math.sin(alpha * omega) * sinom;
21162116
} else {
21172117
scale0 = 1.0f - alpha;
21182118
scale1 = alpha;

0 commit comments

Comments
 (0)