light: lantern lookup should be faster

This commit is contained in:
minjaesong
2019-01-17 16:05:48 +09:00
parent b8bf1d2412
commit 0397c47aad
3 changed files with 26 additions and 19 deletions

View File

@@ -53,3 +53,5 @@ data class Point2d(var x: Double, var y: Double) : Cloneable {
fun distSqr(other: Point2d) = ((this.x - other.x).sqr() + (this.y - other.y).sqr())
}
data class Point2i(val x: Int, val y: Int)