Files
Terrarum/src/net/torvald/point/Point2d.kt
Song Minjae 2ed435165a ActorWithBody: broke CCD again for fundamental error-catching, new tile STONE_BRICKS
Former-commit-id: 3d98f83f3d40f4423b403eae717a06ac6fc22531
Former-commit-id: 13616655a392941e0c91c3384384475ae0adb5db
2016-06-29 01:15:13 +09:00

17 lines
285 B
Kotlin

package net.torvald.point
/**
* Created by minjaesong on 16-01-15.
*/
class Point2d(var x: Double, var y: Double) : Cloneable {
override fun toString(): String {
return "($x, $y)"
}
fun set(x: Double, y: Double) {
this.x = x
this.y = y
}
}