API reference
API reference
Select your platform
No SDKs available
No versions available

MathUtils Class

Modifiers: final

Signature

class MathUtils

Constructors

MathUtils ()
Signature
constructor()
Returns

Companion Object

Companion Object Functions

lerp ( start , end , fraction )
Linearly interpolates between two float values.
Signature
fun lerp(start: Float, end: Float, fraction: Float): Float
Parameters
start: Float
The starting value.
end: Float
The ending value.
fraction: Float
The fraction between the start and end values.
Returns
Float
The interpolated value.
Did you find this page helpful?