re-impl of once-scrapped "No-op Mask", and it works

This commit is contained in:
minjaesong
2019-02-06 23:31:21 +09:00
parent 36c6cb78ba
commit 091c8cef48
2 changed files with 105 additions and 20 deletions

View File

@@ -54,4 +54,14 @@ data class Point2d(var x: Double, var y: Double) : Cloneable {
}
data class Point2i(val x: Int, val y: Int)
data class Point2i(var x: Int, var y: Int) {
fun set(x: Int, y: Int) {
this.x = x
this.y = y
}
fun set(other: Point2i) {
this.x = other.x
this.y = other.y
}
}