mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
re-impl of once-scrapped "No-op Mask", and it works
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user