Skip to content

0.4.5 "Ride The Wave"

Choose a tag to compare

@tommyettinger tommyettinger released this 02 Dec 06:02

This release consists mainly of fixes for the wave functions added in 0.4.4, and a small speed + accuracy boost to some sin() methods. The triangleWave(), squareWave(), and sawtoothWave() methods were missing some important parentheses, and behaved very badly before (they are fine now). Methods like sin(), sinDeg(), sinTurns(), for float and for double types, should be a little faster and more precise by using the sine table (instead of shifting and using the cosine table). There aren't changes to any sinSmooth() or sinSmoother() variants, nor any cosine methods. There are also some small optimizations in Interpolations, affecting (fittingly for the wave theme) the sine, sineIn, and sineOut Interpolator instances; the visible difference for the new interpolations should be miniscule, if noticeable at all, but zoomed-in usage might see that these have a tiny staircase effect, with one step for every 1/4096.0 change to the input. This also updates to Gradle 8.5, so it could be built with Java 21, if anyone wants to do that.