mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-16 16:46:07 +09:00
collision detection and CCD: Not exactly fixed but it works good enough
Former-commit-id: 3feb9b1156fc941390b4efe4c1540ed4c5dbd109 Former-commit-id: 8c97b0ade765731800ef09b722e0742e44443338
This commit is contained in:
@@ -3,19 +3,9 @@ package net.torvald.point
|
||||
/**
|
||||
* Created by minjaesong on 16-01-15.
|
||||
*/
|
||||
class Point2d(x: Double, y: Double) {
|
||||
class Point2d(var x: Double, var y: Double) : Cloneable {
|
||||
|
||||
var x: Double = 0.toDouble()
|
||||
private set
|
||||
var y: Double = 0.toDouble()
|
||||
private set
|
||||
|
||||
init {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
|
||||
operator fun set(x: Double, y: Double) {
|
||||
fun set(x: Double, y: Double) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user