mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
11 lines
289 B
Kotlin
11 lines
289 B
Kotlin
package net.torvald.terrarum.ui
|
|
|
|
import net.torvald.terrarum.gameactors.sqr
|
|
|
|
/**
|
|
* Created by minjaesong on 2017-03-14.
|
|
*/
|
|
object UIUtils {
|
|
fun moveQuick(start: Double, end: Double, timer: Double, duration: Double) =
|
|
(start - end) * ((timer / duration) - 1).sqr() + end
|
|
} |