test impl of "collision interpolator'; new number font for itemslots

This commit is contained in:
minjaesong
2019-07-07 20:53:20 +09:00
parent 01e475814b
commit b66ca70d6c
9 changed files with 94 additions and 12 deletions

View File

@@ -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) {