mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-11 22:31:52 +09:00
Former-commit-id: 3d98f83f3d40f4423b403eae717a06ac6fc22531 Former-commit-id: 13616655a392941e0c91c3384384475ae0adb5db
17 lines
285 B
Kotlin
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
|
|
}
|
|
}
|