FloatExt ClassSingle extensions.
Inheritance Hierarchy
System.Object
UltimateXR.Extensions.System.Math.FloatExt
Namespace: UltimateXR.Extensions.System.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static class FloatExt
The FloatExt type exposes the following members.
Methods
Name | Description | |
---|---|---|
Clamp(Single) | Clamps a value to [0.0, 1.0]. | |
Clamp(Single, Single, Single) | Clamps a value so that it doesn’t go beyond a given range. | |
Clamped(Single) | Returns a clamped value in range [0.0, 1.0]. | |
Clamped(Single, Single, Single) | Returns a clamped value. | |
IsAlmostZero | Checks if a float value is or is very close to zero. | |
SecondsToTimeString | Converts a float value representing time in seconds to a formatted string value. | |
ToEuler180 | Given a value in degrees, returns the same angle making sure it’s in range [-180, 180]. For example, an input of -380.3 would return -20.3. |