ktx v1.9.8-b2 Release Notes
Release Date: 2018-03-07 // about 6 years ago-
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
)dot
andx
infix functions added toVector2
andVector3
allow to calculate dot products and cross products of two vectors respectively. - [FEATURE] (
ktx-box2d
) Initiation blocks ofBody
inWorld.body
extension method is now optional thanks to default lambda parameters in inlined functions. - [FEATURE] (
ktx-box2d
)World.query
extension method allowing to execute AABB query with idiomatic Kotlin. - [CHANGE] (
ktx-math
) Binary operators ofVector2
,Vector3
,Matrix3
andMatrix4
(+
,-
,*
,/
) 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
,Matrix3
andMatrix4
. - [CHANGE] (
ktx-math
) Parameters of matrix vector multiplication operators are switched.vector * matrix
does not exist anymore and now is available asmatrix * vector
. - [CHANGE] (
ktx-math
) Operators ofMatrix3
to left-multiply aVector3
were removed.