Property | Type | Description | |
---|---|---|---|
CosLUT | float[] | ||
PIHALF | float | ||
PIQUARTER | float | ||
SinLUT | float[] |
Method | Description | |
---|---|---|
Clamp ( float value, float min, float max ) : float | ||
Equals ( float a, float b ) : bool |
checks if two numbers are equal with a small margin of error
|
|
FastCos ( float angle ) : float |
Fast cosinus calculation with a look up table. Note that it is less accurate than Math.Cos; the largest error is around 0.3 degrees;
|
|
FastSin ( float angle ) : float |
Fast sinus calculation with a look up table. Note that it is less accurate than Math.Sin; the largest error is around 0.3 degrees
|
|
NextPowerOfTwo ( float number ) : int | ||
NextPowerOfTwo ( int number ) : int |
Method | Description | |
---|---|---|
NumberUtil ( ) : System |
public static Clamp ( float value, float min, float max ) : float | ||
value | float | |
min | float | |
max | float | |
return | float |
public static Equals ( float a, float b ) : bool | ||
a | float | |
b | float | |
return | bool |
public static FastCos ( float angle ) : float | ||
angle | float | |
return | float |
public static FastSin ( float angle ) : float | ||
angle | float | |
return | float |
public static NextPowerOfTwo ( float number ) : int | ||
number | float | |
return | int |
public static NextPowerOfTwo ( int number ) : int | ||
number | int | |
return | int |