MathExt

Extended math class with performant functions to do various things.

Properties

Name Type Description

Functions

Name Returns Description
LerpNumber
RemapNumber
SineWaveNumber
CosineWaveNumber
InverseLerpNumber
MapNumber
SmoothStepNumber
PerlinNoiseNumber
LerpAngleNumber
ClampNumber
Clamp01Number
RandomRangeNumber
PingPongNumber
BezierCurveNumber
NoiseBasedRandomNumber
HarmonicMotionNumber
CatmullRomSplineNumber
LogisticSigmoidNumber
FactorialNumberCalculates the factorial of a non-negative integer.
FibonacciNumberCalculates the Fibonacci number at the specified index.
SphereDistanceNumberCalculates the distance between two points on a sphere (Haversine formula).
TriangleAreaNumberCalculates the area of a triangle given three side lengths (Heron's formula).
GoldenRatioNumberCalculates the golden ratio approximation.
DegreesToRadiansNumberConverts degrees to radians.
RadiansToDegreesNumberConverts radians to degrees.
NthRootNumberCalculates the n-th root of a number.

Events

Name Description