Package-level declarations

Types

Link copied to clipboard
object FloatMath
Link copied to clipboard
class MathUtils

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Double.clamp(min: Double, max: Double): Double
fun Float.clamp(min: Float, max: Float): Float
fun Int.clamp(min: Int, max: Int): Int
fun Long.clamp(min: Long, max: Long): Long
fun Short.clamp(min: Short, max: Short): Short
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Double.format(pattern: String): String
fun Double.format(pattern: String, roundingMode: RoundingMode): String
fun Double.format(pattern: String, groupingSeperator: Char): String
fun Double.format(pattern: String, init: DecimalFormat.() -> Unit): String
Link copied to clipboard
fun Int.getString(context: Context?): String?
Link copied to clipboard
Link copied to clipboard
fun lerp(a: Float, b: Float, t: Float): Float

Linearly interpolate between two values.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Double.next(direction: Double): Double
fun Float.next(direction: Double): Float
fun Float.next(direction: Float): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Float.percentToValueOfRange(min: Float = 0.0f, max: Float): Float
Link copied to clipboard
fun Double.pow(exp: Double): Double
fun Float.pow(exp: Float): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Double.roundDown(pattern: String): String
Link copied to clipboard
Link copied to clipboard
fun Double.scalb(scaleFactor: Int): Double
fun Float.scalb(scaleFactor: Int): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Int.sleep()
fun Long.sleep()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Float.valueToPercentOfRange(min: Float = 0.0f, max: Float): Float