Math
object MathExposes the JavaScript Math object to Kotlin.
Properties
PI
val PI: DoubleFunctions
abs
fun abs(value: Double): Doubleacos
fun acos(value: Double): Doubleasin
fun asin(value: Double): Doubleatan
fun atan(value: Double): Doubleatan2
fun atan2(y: Double, x: Double): Doublecos
fun cos(value: Double): Doubleexp
fun exp(value: Double): Doublelog
fun log(value: Double): Doublemax
fun max(vararg values: Int): Intfun max(vararg values: Float): Floatfun max(vararg values: Double): Doublemin
fun min(vararg values: Int): Intfun min(vararg values: Float): Floatfun min(vararg values: Double): Doublepow
fun pow(base: Double, exp: Double): Doublerandom
fun random(): Doublesin
fun sin(value: Double): Doublesqrt
fun sqrt(value: Double): Doubletan
fun tan(value: Double): Double