java.lang.Object
dev.aurumbyte.sypherengine.math.Mathf
The Math utility class for the engine
- Since:
- 0.3.2
- Author:
- AurumByte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatdenormalize(float min, float max, float normalized) The getting back of a number from a normalized onestatic floatinverseLerp(float a, float b, float v) The inverse of the linear interpolation formulastatic floatlerp(float a, float b, float f) The linear interpolation formulastatic floatnormalize(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
-