MathHelper

open class MathHelper

Static functions for common math operations.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Returns true if two floats are equal within a tolerance.
Link copied to clipboard
open fun clamp(value: Float, min: Float, max: Float): Float
Clamps a value between a minimum and maximum range.
Link copied to clipboard
open fun lerp(a: Float, b: Float, t: Float): Float
Linearly interpolates between a and b by a ratio.