working pen menu

This commit is contained in:
minjaesong
2019-02-16 22:48:27 +09:00
parent 49f8b8d1c8
commit 3c1b4c8a64
11 changed files with 170 additions and 43 deletions

View File

@@ -682,6 +682,8 @@ fun Float.sqrt() = FastMath.sqrt(this)
fun Int.abs() = this.absoluteValue
fun Double.bipolarClamp(limit: Double) =
this.coerceIn(-limit, limit)
fun Boolean.toInt() = if (this) 1 else 0
fun absMax(left: Double, right: Double): Double {
if (left > 0 && right > 0)