Utilities with quick but manual array operations for merging, filling, converting to lists, etc.
More...
|
static T[] | MergeArrays< T > (this T[] beginningArray, T[] endArray) |
| Returns a new array with endArray concatenated onto the end of beginningArray More...
|
|
static T[] | Fill< T > (this T[] array, T value) |
| Fill a preallocated array of type T with identical values of type T. More...
|
|
static T[] | Fill< T > (this T[] array, T value, int size) |
| Fill an unallocated array of type T with identical values of type T. More...
|
|
static void | FillArrayRandom (this int[] array, int min, int max) |
| Fills float array with random numbers from min [inclusive] to max [inclusive] More...
|
|
static void | FillArrayRandom (this float[] array, float min, float max) |
| Fills float array with random numbers from min [inclusive] to max [inclusive] More...
|
|
static void | FillArrayRandom (this double[] array, float min, float max) |
| Fills double array with random numbers from min [inclusive] to max [inclusive] More...
|
|
static void | FillArrayRandom (this double[] array, double min, double max) |
| Fills double array with random numbers from min [inclusive] to max [inclusive] More...
|
|
static int[] | ToArray (this List< int > list) |
|
static float[] | ToArray (this List< float > list) |
|
static double[] | ToArray (this List< double > list) |
|
static Vector3[] | ToArray (this List< Vector3 > list) |
|
static List< int > | ToList (this int[] array) |
|
static List< float > | ToList (this float[] array) |
|
static List< double > | ToList (this double[] array) |
|
static float[] | ToFloat (this double[] array) |
| Cast an array of doubles into an array of floats More...
|
|
static int[] | Reverse (this int[] array) |
|
static float[] | Reverse (this float[] array) |
|
static double[] | Reverse (this double[] array) |
|
static void | RescaleArray (this float[] array, float newMin, float newMax, float oldMin, float oldMax) |
| Rescale each member of an array from (oldMin, oldMax) to (newMin, newMax) More...
|
|
static void | RescaleArray (this float[] array, float newMin, float newMax) |
| Rescale each member of an array from (oldMin, oldMax) to (newMin, newMax) More...
|
|
static float[] | Times (this float[] array, float s) |
| Multiplies every value in this array by s More...
|
|
static double[] | Times (this double[] array, double s) |
| Multiplies every value in this array by s More...
|
|
static T[] | Subset< T > (this T[] array, int to, int from=0) |
| Returns a subset of this array from [from] (inclusive) to [to] (exclusive) More...
|
|
static List< int > | GetExtrema (this double[] array, bool includeEnds=false, bool onlyMaxima=false, bool onlyMinima=false) |
| Returns a list of indices of the array/list's local extrema in the order in which they are found. More...
|
|
static List< int > | GetExtrema (this List< double > list, bool includeEnds=false, bool onlyMaxima=false, bool onlyMinima=false) |
| Returns a list of indices of the array/list's local extrema in the order in which they are found. More...
|
|
static List< int > | GetExtrema (this List< float > list, bool includeEnds=false, bool usePivots=false, bool onlyMaxima=false, bool onlyMinima=false) |
| Returns a list of indices of the array/list's local extrema in the order in which they are found. More...
|
|
static string | ToStringFull (this double[] array) |
|
Utilities with quick but manual array operations for merging, filling, converting to lists, etc.
Relevant methods should vastly outperform System.Linq methods