Repository navigation
KTX 1.9.8-b2
Pre-release
Pre-release
Contains notable breaking changes to ktx-math operators in order to prevent calculation errors arising from vectors and matrices mutability.
- [UPDATE] Updated to Kotlin 1.2.30.
- [UPDATE] Updated to Kotlin Coroutines 0.22.5.
- [UPDATE] Updated to Dokka 0.9.16.
- [UPDATE] Updated to Gradle 4.6.
- [FEATURE] (
ktx-math)dotandxinfix functions added toVector2andVector3allow to calculate dot products and cross products of two vectors respectively. - [FEATURE] (
ktx-box2d) Initiation blocks ofBodyinWorld.bodyextension method is now optional thanks to default lambda parameters in inlined functions. - [FEATURE] (
ktx-box2d)World.queryextension method allowing to execute AABB query with idiomatic Kotlin. - [CHANGE] (
ktx-math) Binary operators ofVector2,Vector3,Matrix3andMatrix4(+,-,*,/) no longer modify the first vector or matrix. Instead, they create new instances of vectors or matrices that store the operation result. Use the assign operators (+=,-=,*=,/=) instead to avoid creating new instances. - [CHANGE] (
ktx-math) New mutating assign operators (+=,-=,*=,/=) were added toVector2,Vector3,Matrix3andMatrix4. - [CHANGE] (
ktx-math) Parameters of matrix vector multiplication operators are switched.vector * matrixdoes not exist anymore and now is available asmatrix * vector. - [CHANGE] (
ktx-math) Operators ofMatrix3to left-multiply aVector3were removed.