|
static int | mmod (int i, int m) |
| Mod the way every other language does with negative numbers (Result should always be positive) eg. 5 % 10 = 5; -5 % 10 = 5 (In csharp -5 % 10 = -5) More...
|
|
static float | mmodNorm (int i, int m) |
| Mod where the result is normalized between 0-1 More...
|
|
static int | bounce (int i, int m) |
| A modulo that bounces back and forth More...
|
|
static float | WrapUnit (float val) |
| Wraps a number between 0-1 (Effectively truncating it) Negative numbers will be wrapped up eg -0.14 -> 0.86 More...
|
|
static float | FloatRemainder (float val, float div) |
| Get the remainder of two floats divided by each other i.e. 11/4, has a remainder of 3; or 4 / 1.5 has a remainder of 1; or -3 / 10 = 7 More...
|
|
static double | FloatRemainder (double val, double div) |
| Get the remainder of two floats divided by each other i.e. 11/4, has a remainder of 3; or 4 / 1.5 has a remainder of 1; or -3 / 10 = 7 More...
|
|
static float | NormalizedFloatRemainder (float val, float div) |
| Gets the normalized (0.0-1.0) value of the divided remainer of two numbers More...
|
|
static float | FloorNearest (float val, float by) |
| Floors a number to the nearest unit of by (rather than removing the remainder) eg. FloorNearest(5.9, 0.2) = 0.8 More...
|
|
static double | FloorNearest (double val, double by) |
| Floors a number to the nearest unit of by (rather than removing the remainder) eg. FloorNearest(5.9, 0.2) = 0.8 More...
|
|
static int | NextPow2 (int v) |
| Gets the next power-of-2. i.e. if 513 was passed in, it'd return 1024 More...
|
|
static int | FloorInt (float v) |
| Make a floor of the float and then converts to an int (i.e. 0.5 -> 0, -1.5 -> -2) More...
|
|
static int | FloorInt (double v) |
| Fast floor int for double More...
|
|
static int | CeilInt (float v) |
| Ceils the int. More...
|
|
static int | CeilInt (double v) |
| Ceils the int. More...
|
|
static float | Fraction (float v) |
| Gets the fractional part of the value More...
|
|
static double | Fraction (double v) |
| Gets the fractional part of the value More...
|
|
static float | RadianToDegree (float radian) |
| Radians to degree. More...
|
|
static float | DegreeToRadian (float degree) |
| Degrees to radian. More...
|
|
static double | RadianToDegree (double radian) |
| Radians to degree. More...
|
|
static double | DegreeToRadian (double degree) |
| Degrees to radian. More...
|
|
static float | Clamp (float v, float min, float max) |
| Clamp the specified v, min and max. More...
|
|
static int | Clamp (int v, int min, int max) |
| Clamp a number between min and max More...
|
|
static long | Clamp (long v, long min, long max) |
| Clamp a number between min and max More...
|
|
static double | Clamp (double v, double min, double max) |
| Clamp a number between min and max More...
|
|
static float | ClampUnit (float v) |
| Clamp a float between 0 and 1, inclusive More...
|
|
static double | ClampUnit (double v) |
| Clamp a double between 0 and 1, inclusive More...
|
|
static int | FloorDiv (int a, int b) |
| Returns the floor value of the division of two numbers C# Standard specifies that the div op moves the remainder closer to 0, rather than the normal standard (a higher value) More...
|
|
static int | CeilDiv (int a, int b) |
| Gets the ceiling of a number that moves towards the higher value, rather than away from 0 More...
|
|
static float | Normalize (float v, float min, float max) |
| Scales the values between the max and min to a 0-1 scale eg 0.6 between 0.5 and 1 = 0.2 More...
|
|
static double | Normalize (double v, double min, double max) |
| Scales the values between the max and min to a 0-1 scale eg 0.6 between 0.5 and 1 = 0.2 More...
|
|
static float | NormalizeClamp (float v, float min, float max) |
| Normalize the value, and clamp between 0 and 1 More...
|
|
static double | NormalizeClamp (double v, double min, double max) |
| Normalize the value and clamp between 0 and 1 More...
|
|
static T | Max< T > (params T[] args) |
| Get the max value in all the arguments More...
|
|
static T | Min< T > (params T[] args) |
| Get the min value in all the arguments More...
|
|