mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 18:44:05 +09:00
test impl of "collision interpolator'; new number font for itemslots
This commit is contained in:
@@ -57,6 +57,8 @@ data class Point2d(var x: Double, var y: Double) : Cloneable {
|
||||
fun length(other: Point2d) = distSqr(other).sqrt()
|
||||
fun distSqr(other: Point2d) = ((this.x - other.x).sqr() + (this.y - other.y).sqr())
|
||||
|
||||
fun toDoubleArray() = doubleArrayOf(x, y)
|
||||
|
||||
}
|
||||
|
||||
data class Point2i(var x: Int, var y: Int) {
|
||||
|
||||
Reference in New Issue
Block a user