Class GLMathf
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Methods for additional math functions.
[Version(1, 4, 0)]
public static class GLMathf
- Inheritance
-
GLMathf
- Inherited Members
Fields
Methods
- Bilerp(float, float, float, float, float, float)
Performs bilinear interpolation between four values.
- Equal(float, float)
Checks if two floating point numbers are equal.
- FloorDiv(int, int)
Floor division that also work for negative m.
- FloorMod(int, int)
Mod operator that also works for negative m.
- FloorMod(float, float)
Mod operator that also works for negative m.
- FloorToInt(float)
Returns the highest integer equal to the given float.
- Frac(float)
Returns the fractional part of a floating point number.
- InRange(float, float, float)
Tests whether the given value lies in the half-open interval specified by its endpoints, that is, whether the value lies in the interval
[closedLeft, openRight)
.
- InRange01(float)
Tests whether the given value lies in the range [0, 1).
- Sign(int)
Returns the sign function evaluated at the given value.
- Sign(float)
Returns the sign function evaluated at the given value.
- Trilerp(float, float, float, float, float, float, float, float, float, float, float)
Performs trilinear interpolation between eight values.
- Wlerp01(float, float, float)
Linearly interpolates between two values between 0 and 1 if values wrap around from 1 back to 0.