Upgrade to Gradle 8.10, Kotlin 2.0.20, reduce warnings
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user