Table of Contents

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

string

Type Parameters

T

CeilToMultiple(float, int)

public static int CeilToMultiple(float toRound, int multipleOf)

Parameters

toRound float
multipleOf int

Returns

int

CeilToMultiple(float, float)

public static float CeilToMultiple(float toRound, float multipleOf)

Parameters

toRound float
multipleOf float

Returns

float

CompareArrays<T>(T[], T[])

public static bool CompareArrays<T>(T[] array1, T[] array2)

Parameters

array1 T[]
array2 T[]

Returns

bool

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

str string
numOfChars int

Returns

string

FloorToMultiple(float, int)

public static int FloorToMultiple(float toRound, int multipleOf)

Parameters

toRound float
multipleOf int

Returns

int

FloorToMultiple(float, float)

public static float FloorToMultiple(float toRound, float multipleOf)

Parameters

toRound float
multipleOf float

Returns

float

Mod(int, int)

Returns a mod b, giving a non-negative result.

public static int Mod(int a, int b)

Parameters

a int
b int

Returns

int

Range(int, int)

Creates an array starting at start and ending at end (inclusive).

public static int[] Range(int start, int end)

Parameters

start int
end int

Returns

int[]

RoundDecimalPlaces(float, int)

public static float RoundDecimalPlaces(float f, int decimalPlaces)

Parameters

f float
decimalPlaces int

Returns

float

RoundToMultiple(float, int)

public static int RoundToMultiple(float toRound, int multipleOf)

Parameters

toRound float
multipleOf int

Returns

int

RoundToMultiple(float, float)

public static float RoundToMultiple(float toRound, float multipleOf)

Parameters

toRound float
multipleOf float

Returns

float

SymmetricCeil(float)

public static float SymmetricCeil(float f)

Parameters

f float

Returns

float

SymmetricCeilToInt(float)

public static int SymmetricCeilToInt(float f)

Parameters

f float

Returns

int

SymmetricFloor(float)

public static float SymmetricFloor(float f)

Parameters

f float

Returns

float

SymmetricFloorToInt(float)

public static int SymmetricFloorToInt(float f)

Parameters

f float

Returns

int

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

f float
decimalPlaces int

Returns

float

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