mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 22:14:05 +09:00
working zoom out
Former-commit-id: a53ed485163ef36cf5b59941eb657761cde166d5 Former-commit-id: a2b575150e128ceb7894d9ba4eb0db127d071bcb
This commit is contained in:
@@ -1108,6 +1108,7 @@ open class ActorWithBody : Actor() {
|
||||
|
||||
fun Double.floorInt() = Math.floor(this).toInt()
|
||||
fun Float.floorInt() = FastMath.floor(this).toInt()
|
||||
fun Float.ceilInt() = FastMath.ceil(this).toInt()
|
||||
fun Double.round() = Math.round(this).toDouble()
|
||||
fun Double.floor() = Math.floor(this)
|
||||
fun Double.ceil() = this.floor() + 1.0
|
||||
|
||||
Reference in New Issue
Block a user