KTX 1.12.1-rc1
The first release to support libGDX 1.12.1.
- [UPDATE] Updated to libGDX 1.12.1.
- [UPDATE] Updated to Kotlin 1.9.20.
- [UPDATE] Updated to Kotlin Coroutines 1.7.3.
- [UPDATE] Updated to VisUI 1.5.3.
- [UPDATE] Updated to Dokka 1.9.10.
- [FEATURE] (
ktx-math
) New extension and factory functions were introduced toVector4
, offering similar utilities to the other vectors.vec4
factory methods allow creating newVector4
instances with default and named parameters.+=
,-=
,*=
,/=
mutating operators are now supported.+
,-
(including unary-
),++
,--
,*
,/
operators are now supported, returning new instances of vectors as a result.- Vectors are now comparable by length, adding support for
<
,>
,<=
,>=
operators. Vector4
instances can now be deconstructed into 4 four values (X, Y, Z, W) using extension component methods.dot
infix function allows calculating the dot product of 2 vectors.
Known issues:
- (
ktx-assets
) Pools created via thepool
factory method do not reset the discarded objects by default, which is inconsistent with the libGDX pool behavior. To replicate this, pass adiscard
lambda parameter callingreset
on the discarded objects that implement thePoolable
interface.