Quick, static methods for finding max, min, and clamped scalar values and arrays
More...
|
static int | Min (int a, int b) |
|
static float | Min (float a, float b) |
|
static double | Min (double a, double b) |
|
static int | Max (int a, int b) |
|
static float | Max (float a, float b) |
|
static double | Max (double a, double b) |
|
static float | Max (this Vector3 a) |
|
static float | Min (this Vector3 a) |
|
static int | Clamp (int value, int min, int max) |
| If value < min, returns min, If min <= value <= max, returns value, If value > max, returns max More...
|
|
static float | Clamp (float value, float min, float max) |
| If value < min, returns min, If min <= value <= max, returns value, If value > max, returns max More...
|
|
static double | Clamp (double value, double min, double max) |
| If value < min, returns min, If min <= value <= max, returns value, If value > max, returns max More...
|
|
static Vector3 | Clamp (this Vector3 value, Vector3 min, Vector3 max) |
| Clamp a Vector3 betwen a min and a max Vector3 More...
|
|
static int | Max (this int[] array) |
|
static float | Max (this float[] array) |
|
static double | Max (this double[] array) |
|
static int | Max (this List< int > list) |
|
static float | Max (this List< float > list) |
|
static double | Max (this List< double > list) |
|
static int | Min (this int[] array) |
|
static float | Min (this float[] array) |
|
static double | Min (this double[] array) |
|
static int | Min (this List< int > list) |
|
static float | Min (this List< float > list) |
|
static double | Min (this List< double > list) |
|
static float | Avg (this int[] array) |
|
static float | Avg (this float[] array) |
|
static double | Avg (this double[] array) |
|
static float | Avg (this List< int > list) |
|
static float | Avg (this List< float > list) |
|
static double | Avg (this List< double > list) |
|
static float | StdDev (this int[] array) |
|
static float | StdDev (this float[] array) |
|
static float | StdDev (this double[] array) |
|
static float | StdDev (this List< int > list) |
|
static float | StdDev (this List< float > list) |
|
static float | StdDev (this List< double > list) |
|
static int | Sum (this int[] array) |
|
static float | Sum (this float[] array) |
|
static double | Sum (this double[] array) |
|
static int | Sum (this List< int > list) |
|
static float | Sum (this List< float > list) |
|
static double | Sum (this List< double > list) |
|
static int[] | Abs (this int[] array) |
|
static float[] | Abs (this float[] array) |
|
static double[] | Abs (this double[] array) |
|
static List< int > | Abs (this List< int > list) |
|
static List< float > | Abs (this List< float > list) |
|
static List< double > | Abs (this List< double > list) |
|
static float[] | Rescale (this float[] array, float newMin, float newMax, float oldMin, float oldMax) |
|
static List< float > | Rescale (this List< float > array, float newMin, float newMax, float oldMin, float oldMax) |
|
static Vector3 | Dot (this Vector3 a, Vector3 b) |
|
static void | CompareToLinq (int numTrials=1000, int arraySize=1000, bool testMin=true, bool testMax=true, bool testClamp=true, bool testArrMax=true, bool testArrMin=true, bool testArrAvg=true, bool testArrStdDev=true, bool testArrSum=true, bool testArrAbs=true, float maxTimeSeconds=30f) |
| Run each function in this class and compare the performance to System.Linq's matching methods More...
|
|
Quick, static methods for finding max, min, and clamped scalar values and arrays
Should vastly outperform System.Linq methods