aboutsummaryrefslogtreecommitdiff
path: root/ingame/src/main/kotlin/moe/nea89/sbdata/utils/base64.kt
blob: 4e953355eaebe2d7d33a6a1c75bb54355e37fde1 (plain)
1
2
3
4
5
6
7
8
package moe.nea89.sbdata.utils

import java.util.*


fun String.base64decode() = Base64.getDecoder().decode(this)

fun Double.interpolate(left: Double, right: Double): Double = left * (1 - this) + right * this