Class MathUtility
Syntax
public static class MathUtility
Methods
Clamp(Double, Double, Double)
Declaration
public static double Clamp(double input, double min, double max)
Parameters
Returns
FirstActiveFlagIndex(Int32)
Declaration
public static int FirstActiveFlagIndex(int x)
Parameters
Type |
Name |
Description |
Int32 |
x |
|
Returns
IsAxisAligned(Vector3)
Declaration
public static bool IsAxisAligned(this Vector3 v)
Parameters
Type |
Name |
Description |
Vector3 |
v |
|
Returns
IsPositivePowerOfTwo(Int32)
Declaration
public static bool IsPositivePowerOfTwo(int x)
Parameters
Type |
Name |
Description |
Int32 |
x |
|
Returns
IsUndefined(Single)
Declaration
public static bool IsUndefined(this float value)
Parameters
Type |
Name |
Description |
Single |
value |
|
Returns
ShortestAngleDistance(Double, Double, Double, Double)
Declaration
public static double ShortestAngleDistance(double start, double end, double halfMax, double max)
Parameters
Returns
ShortestAngleDistance(Single, Single, Single, Single)
Declaration
public static float ShortestAngleDistance(float start, float end, float halfMax, float max)
Parameters
Returns