View on GitHub

SpheroidScript

//Spheroid Script/spheroid.math

Package spheroid.math

Functions

Name Summary
abs Returns the absolute value of the given value x.
fun abs(x: Number): Double
cos Computes the cosine of the angle x given in radians.
fun cos(x: Number): Double
sin Computes the sine of the angle x given in radians.
fun sin(x: Number): Double
sqrt Computes the positive square root of the value x.
fun sqrt(x: Number): Float

Properties

Name Summary
PI Ratio of the circumference of a circle to its diameter, approximately 3.14159.const val PI: Double