java.lang.Object
dev.aurumbyte.sypherengine.math.Mathf
The Math utility class for the engine
- Since:
- 0.3.2
- Author:
- AurumByte
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
denormalize
(float min, float max, float normalized) The getting back of a number from a normalized onestatic float
inverseLerp
(float a, float b, float v) The inverse of the linear interpolation formulastatic float
lerp
(float a, float b, float f) The linear interpolation formulastatic float
normalize
(float min, float max, float num) The normalization of a number
-
Constructor Details
-
Mathf
public Mathf()
-
-
Method Details
-
lerp
public static float lerp(float a, float b, float f) The linear interpolation formula
-
inverseLerp
public static float inverseLerp(float a, float b, float v) The inverse of the linear interpolation formula
-
normalize
public static float normalize(float min, float max, float num) The normalization of a number
-
denormalize
public static float denormalize(float min, float max, float normalized) The getting back of a number from a normalized one
-