Skip to content

Commit

Permalink
Avoid superfluous float cast
Browse files Browse the repository at this point in the history
  • Loading branch information
httpdigest committed Aug 2, 2024
1 parent c3dd860 commit 5886cdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (buildProfile == 'experimental') {
}

group 'org.joml'
version '1.10.8'
version '1.10.9-SNAPSHOT'

configurations {
buildhelper
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/joml/Quaternionf.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5886cdf

Please sign in to comment.