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

NameDescription
Public methodStatic memberClamp(Single) Clamps a value to [0.0, 1.0].
Public methodStatic memberClamp(Single, Single, Single) Clamps a value so that it doesn’t go beyond a given range.
Public methodStatic memberClamped(Single) Returns a clamped value in range [0.0, 1.0].
Public methodStatic memberClamped(Single, Single, Single) Returns a clamped value.
Public methodStatic memberIsAlmostZero Checks if a float value is or is very close to zero.
Public methodStatic memberSecondsToTimeString Converts a float value representing time in seconds to a formatted string value.
Public methodStatic memberToEuler180 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.

See Also

Reference

UltimateXR.Extensions.System.Math Namespace