Static Public Member Functions | |
| static bool | Approximately (float lhs, float rhs) |
| Returns true if absolute difference between lhs and rhs is less than or equal to Epsilon More... | |
| static bool | Approximately (float lhs, float rhs, float precision) |
| Returns true if absolute difference between lhs and rhs is less than or equal to precision More... | |
| static float | Clamp (float value, float min, float max) |
| Clamps specified float value between minimum float and maximum float and returns the clamped float value More... | |
| static int | Clamp (int value, int min, int max) |
| Clamps the specified integer value between minimum integer and maximum integer and returns the clamped integer value More... | |
| static float | Clamp01 (float value) |
| Clamps the specified value between 0.0 and 1.0. More... | |
| static float | DegreesToRadians (float degrees) |
| Convert degrees to radians. More... | |
| static float | RadiansToDegrees (float rad) |
| Convert Radians to degrees. More... | |
| static bool | IsInRange< T > (T value, T min, T max) |
| Determines whether a value is inside the specified range. More... | |
| static T | Clamp< T > (T value, T min, T max) |
| Clamps a value given a specified range. More... | |
| static float | ClampAngleDegrees (float angle, float min, float max) |
| Clamps the specified angle between minimum angle and maximum angle and returns the clamped value More... | |
| static T | Max< T > (T val1, T val2) |
| Returns the largest of the 2 specified values More... | |
| static T | Min< T > (T val1, T val2) |
| Returns the smallest of the 2 specified values More... | |
| static bool | IsPowerOfTwo (int value) |
| Returns true if the specified int value is a power of two More... | |
| static float | ISqrt (float d) |
| Returns the inversed square root of the specified value More... | |
| static void | SinCos (float angle, out float sin, out float cos) |
| Outputs the sine and cosine of specified angle in radians when called More... | |
| static float | Square (float value) |
| Returns the square of the specified value More... | |
| static float | LerpUnclamped (float a, float b, float t) |
| Returns the linearly interpolated value between a and b with no restriction to t More... | |
| static float | Lerp (float a, float b, float t) |
| Returns the clamped value a and b More... | |
| static Vector3 | Lerp (Vector3 a, Vector3 b, float t) |
| Returns the unclamped linearly interpolated vector between a and b More... | |
| static float | Repeat (float length, float t) |
| Keeps the value between 0 and length, but instead of clamping the value it will loop it. More... | |
| static float | PingPong (float length, float t) |
| Keeps the value between 0 and length, but instead of clamping the value it will move back and forth between 0 and length. More... | |
Static Public Attributes | |
| static readonly float | Epsilon = Debug.MathHelpers.EpsilonData.IsDeNormalizedFloatEnabled ? Debug.MathHelpers.EpsilonData.MagicNumber : Debug.MathHelpers.EpsilonData.FloatMinVal |
| The smallest number a float can be, without being zero. More... | |
|
inline static |
Returns true if absolute difference between lhs and rhs is less than or equal to Epsilon
| lhs | |
| rhs |
|
inline static |
Returns true if absolute difference between lhs and rhs is less than or equal to precision
| lhs | |
| rhs | |
| precision |
|
inline static |
Clamps specified float value between minimum float and maximum float and returns the clamped float value
| value | |
| min | |
| max |
|
inline static |
Clamps the specified integer value between minimum integer and maximum integer and returns the clamped integer value
| value | |
| min | |
| max |
|
inline static |
Clamps the specified value between 0.0 and 1.0.
| value | Value that needs to be clamped. |
Clamps a value given a specified range.
| T |
| value | |
| min | |
| max |
| T | : | IComparable |
|
inline static |
Clamps the specified angle between minimum angle and maximum angle and returns the clamped value
| angle | |
| min | |
| max |
|
inline static |
Convert degrees to radians.
| degrees | Angle in degrees. |
Determines whether a value is inside the specified range.
| T |
| value | |
| min | |
| max |
| T | : | IComparable |
|
inline static |
Returns true if the specified int value is a power of two
| value |
|
inline static |
Returns the inversed square root of the specified value
| d |
|
inline static |
Returns the clamped value a and b
| a | |
| b | |
| t |
Returns the unclamped linearly interpolated vector between a and b
| a | |
| b | |
| t |
|
inline static |
Returns the linearly interpolated value between a and b with no restriction to t
| a | |
| b | |
| t |
Returns the largest of the 2 specified values
| T |
| val1 | |
| val2 |
| T | : | IComparable |
Returns the smallest of the 2 specified values
| T |
| val1 | |
| val2 |
| T | : | IComparable |
|
inline static |
Keeps the value between 0 and length, but instead of clamping the value it will move back and forth between 0 and length.
| t | T. |
| length | Length. |
|
inline static |
Convert Radians to degrees.
| rad | Angle in radians. |
|
inline static |
Keeps the value between 0 and length, but instead of clamping the value it will loop it.
| t | T. |
| length | Length. |
|
inline static |
Outputs the sine and cosine of specified angle in radians when called
| angle | |
| sin | |
| cos |
|
inline static |
Returns the square of the specified value
| value |
|
static |
The smallest number a float can be, without being zero.