Math
object Math
Exposes the JavaScript Math object to Kotlin.
Properties
PI
val PI: Double
Functions
abs
fun abs(value: Double): Double
acos
fun acos(value: Double): Double
asin
fun asin(value: Double): Double
atan
fun atan(value: Double): Double
atan2
fun atan2(y: Double, x: Double): Double
cos
fun cos(value: Double): Double
exp
fun exp(value: Double): Double
log
fun log(value: Double): Double
max
fun max(vararg values: Int): Int
fun max(vararg values: Float): Float
fun max(vararg values: Double): Double
min
fun min(vararg values: Int): Int
fun min(vararg values: Float): Float
fun min(vararg values: Double): Double
pow
fun pow(base: Double, exp: Double): Double
random
fun random(): Double
sin
fun sin(value: Double): Double
sqrt
fun sqrt(value: Double): Double
tan
fun tan(value: Double): Double