Upgrade to Gradle 8.10, Kotlin 2.0.20, reduce warnings

This commit is contained in:
Edwin Jakobs
2024-08-25 09:39:18 +02:00
parent 5b6f2ec1ff
commit 8a4a85d333
37 changed files with 133 additions and 81 deletions

View File

@@ -81,7 +81,7 @@ class HashGrid(val radius: Double) {
private set
val cellSize = radius / sqrt(2.0)
private inline fun coords(v: Vector2): GridCoords {
private fun coords(v: Vector2): GridCoords {
val x = (v.x / cellSize).fastFloor()
val y = (v.y / cellSize).fastFloor()
return GridCoords(x, y)

View File

@@ -87,7 +87,7 @@ class HashGrid3D(val radius: Double) {
private set
val cellSize = radius / sqrt(3.0)
private inline fun coords(v: Vector3): GridCoords3D {
private fun coords(v: Vector3): GridCoords3D {
val x = (v.x / cellSize).fastFloor()
val y = (v.y / cellSize).fastFloor()
val z = (v.z / cellSize).fastFloor()