Class Functions
- Namespace
- PAC
public static class Functions
- Inheritance
-
Functions
- Inherited Members
Methods
ArrayToString<T>(T[])
public static string ArrayToString<T>(T[] array)
Parameters
array
T[]
Returns
Type Parameters
T
CeilToMultiple(float, int)
public static int CeilToMultiple(float toRound, int multipleOf)
Parameters
Returns
CeilToMultiple(float, float)
public static float CeilToMultiple(float toRound, float multipleOf)
Parameters
Returns
CompareArrays<T>(T[], T[])
public static bool CompareArrays<T>(T[] array1, T[] array2)
Parameters
array1
T[]array2
T[]
Returns
Type Parameters
T
ConcatArrays<T>(T[], T[])
public static T[] ConcatArrays<T>(T[] array1, T[] array2)
Parameters
array1
T[]array2
T[]
Returns
- T[]
Type Parameters
T
CopyArray<T>(T[])
public static T[] CopyArray<T>(T[] array)
Parameters
array
T[]
Returns
- T[]
Type Parameters
T
FirstNChars(string, int)
public static string FirstNChars(string str, int numOfChars)
Parameters
Returns
FloorToMultiple(float, int)
public static int FloorToMultiple(float toRound, int multipleOf)
Parameters
Returns
FloorToMultiple(float, float)
public static float FloorToMultiple(float toRound, float multipleOf)
Parameters
Returns
Mod(int, int)
Returns a mod b, giving a non-negative result.
public static int Mod(int a, int b)
Parameters
Returns
Range(int, int)
Creates an array starting at start and ending at end (inclusive).
public static int[] Range(int start, int end)
Parameters
Returns
- int[]
RoundDecimalPlaces(float, int)
public static float RoundDecimalPlaces(float f, int decimalPlaces)
Parameters
Returns
RoundToMultiple(float, int)
public static int RoundToMultiple(float toRound, int multipleOf)
Parameters
Returns
RoundToMultiple(float, float)
public static float RoundToMultiple(float toRound, float multipleOf)
Parameters
Returns
SymmetricCeil(float)
public static float SymmetricCeil(float f)
Parameters
f
float
Returns
SymmetricCeilToInt(float)
public static int SymmetricCeilToInt(float f)
Parameters
f
float
Returns
SymmetricFloor(float)
public static float SymmetricFloor(float f)
Parameters
f
float
Returns
SymmetricFloorToInt(float)
public static int SymmetricFloorToInt(float f)
Parameters
f
float
Returns
ToArray<T>(HashSet<T>)
public static T[] ToArray<T>(this HashSet<T> hashSet)
Parameters
hashSet
HashSet<T>
Returns
- T[]
Type Parameters
T
TruncateDecimalPlaces(float, int)
public static float TruncateDecimalPlaces(float f, int decimalPlaces)
Parameters
Returns
Vector2ToVector3(Vector3)
public static Vector3 Vector2ToVector3(Vector3 vector2)
Parameters
vector2
Vector3
Returns
- Vector3
Vector3ToVector2(Vector3)
public static Vector2 Vector3ToVector2(Vector3 vector3)
Parameters
vector3
Vector3
Returns
- Vector2