mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 10:34:06 +09:00
com.torvald → net.torvald
Former-commit-id: 375604da8a20a6ba7cd0a8d05a44add02b2d04f4 Former-commit-id: 287287c5920b07618174d7a7573f049d350ded66
This commit is contained in:
22
src/net/torvald/point/Point2f.kt
Normal file
22
src/net/torvald/point/Point2f.kt
Normal file
@@ -0,0 +1,22 @@
|
||||
package net.torvald.point
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-01-15.
|
||||
*/
|
||||
class Point2f(x: Float, y: Float) {
|
||||
|
||||
var x: Float = 0.toFloat()
|
||||
private set
|
||||
var y: Float = 0.toFloat()
|
||||
private set
|
||||
|
||||
init {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
|
||||
operator fun set(x: Float, y: Float) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user