toggle menu
SceneView
androidJvm
switch theme
search in API
sceneview
/
io.github.sceneview.collision
/
MathHelper
Math
Helper
open
class
MathHelper
Static functions for common math operations.
Members
Constructors
Math
Helper
Link copied to clipboard
constructor
(
)
Functions
almost
Equal
Relative
And
Abs
Link copied to clipboard
open
fun
almostEqualRelativeAndAbs
(
a
:
Float
,
b
:
Float
)
:
Boolean
Returns true if two floats are equal within a tolerance.
clamp
Link copied to clipboard
open
fun
clamp
(
value
:
Float
,
min
:
Float
,
max
:
Float
)
:
Float
Clamps a value between a minimum and maximum range.
lerp
Link copied to clipboard
open
fun
lerp
(
a
:
Float
,
b
:
Float
,
t
:
Float
)
:
Float
Linearly interpolates between a and b by a ratio.