C# Class Pathfinding.Voxels.Utility

Show file Open project: henryj41043/TheUnseen

Public Properties

Property Type Description
additiveTimer float
colors UnityEngine.Color[]
lastAdditiveTimerStart float
lastStartTime float

Public Methods

Method Description
Bit ( int a, int b ) : int
ClipPoly ( float vIn, int n, float vOut, float pnx, float pnz, float pd ) : int
ClipPolygon ( Int3 vIn, int n, Int3 vOut, int multi, int offset, int axis ) : int
ClipPolygon ( Vector3 vIn, int n, Vector3 vOut, float multi, float offset, int axis ) : int
ClipPolygon ( float vIn, int n, float vOut, float multi, float offset, int axis ) : int
ClipPolygonY ( float vIn, int n, float vOut, float multi, float offset, int axis ) : int
CopyVector ( float a, int i, Vector3 v ) : void
EndTimer ( string label ) : void
EndTimerAdditive ( string label, bool log ) : void
GetColor ( int i ) : Color
IntToColor ( int i, float a ) : Color
IntersectXAxis ( Vector3 &intersection, Vector3 start1, Vector3 dir1, float x ) : bool
IntersectZAxis ( Vector3 &intersection, Vector3 start1, Vector3 dir1, float z ) : bool
Max ( float a, float b, float c ) : float
Max ( float a, float b, float c, float d ) : float
Max ( int a, int b, int c, int d ) : int
Min ( float a, float b, float c ) : float
Min ( float a, float b, float c, float d ) : float
Min ( int a, int b, int c, int d ) : int
StartTimer ( ) : void
StartTimerAdditive ( bool reset ) : void
ToMillis ( float v ) : string
TriangleArea ( Vector3 a, Vector3 b, Vector3 c ) : float
TriangleArea2 ( Vector3 a, Vector3 b, Vector3 c ) : float

Method Details

Bit() public static method

public static Bit ( int a, int b ) : int
a int
b int
return int

ClipPoly() public static method

public static ClipPoly ( float vIn, int n, float vOut, float pnx, float pnz, float pd ) : int
vIn float
n int
vOut float
pnx float
pnz float
pd float
return int

ClipPolygon() public static method

public static ClipPolygon ( Int3 vIn, int n, Int3 vOut, int multi, int offset, int axis ) : int
vIn Int3
n int
vOut Int3
multi int
offset int
axis int
return int

ClipPolygon() public static method

public static ClipPolygon ( Vector3 vIn, int n, Vector3 vOut, float multi, float offset, int axis ) : int
vIn UnityEngine.Vector3
n int
vOut UnityEngine.Vector3
multi float
offset float
axis int
return int

ClipPolygon() public static method

public static ClipPolygon ( float vIn, int n, float vOut, float multi, float offset, int axis ) : int
vIn float
n int
vOut float
multi float
offset float
axis int
return int

ClipPolygonY() public static method

public static ClipPolygonY ( float vIn, int n, float vOut, float multi, float offset, int axis ) : int
vIn float
n int
vOut float
multi float
offset float
axis int
return int

CopyVector() public static method

public static CopyVector ( float a, int i, Vector3 v ) : void
a float
i int
v UnityEngine.Vector3
return void

EndTimer() public static method

public static EndTimer ( string label ) : void
label string
return void

EndTimerAdditive() public static method

public static EndTimerAdditive ( string label, bool log ) : void
label string
log bool
return void

GetColor() public static method

public static GetColor ( int i ) : Color
i int
return UnityEngine.Color

IntToColor() public static method

public static IntToColor ( int i, float a ) : Color
i int
a float
return UnityEngine.Color

IntersectXAxis() public static method

public static IntersectXAxis ( Vector3 &intersection, Vector3 start1, Vector3 dir1, float x ) : bool
intersection UnityEngine.Vector3
start1 UnityEngine.Vector3
dir1 UnityEngine.Vector3
x float
return bool

IntersectZAxis() public static method

public static IntersectZAxis ( Vector3 &intersection, Vector3 start1, Vector3 dir1, float z ) : bool
intersection UnityEngine.Vector3
start1 UnityEngine.Vector3
dir1 UnityEngine.Vector3
z float
return bool

Max() public static method

public static Max ( float a, float b, float c ) : float
a float
b float
c float
return float

Max() public static method

public static Max ( float a, float b, float c, float d ) : float
a float
b float
c float
d float
return float

Max() public static method

public static Max ( int a, int b, int c, int d ) : int
a int
b int
c int
d int
return int

Min() public static method

public static Min ( float a, float b, float c ) : float
a float
b float
c float
return float

Min() public static method

public static Min ( float a, float b, float c, float d ) : float
a float
b float
c float
d float
return float

Min() public static method

public static Min ( int a, int b, int c, int d ) : int
a int
b int
c int
d int
return int

StartTimer() public static method

public static StartTimer ( ) : void
return void

StartTimerAdditive() public static method

public static StartTimerAdditive ( bool reset ) : void
reset bool
return void

ToMillis() public static method

public static ToMillis ( float v ) : string
v float
return string

TriangleArea() public static method

public static TriangleArea ( Vector3 a, Vector3 b, Vector3 c ) : float
a UnityEngine.Vector3
b UnityEngine.Vector3
c UnityEngine.Vector3
return float

TriangleArea2() public static method

public static TriangleArea2 ( Vector3 a, Vector3 b, Vector3 c ) : float
a UnityEngine.Vector3
b UnityEngine.Vector3
c UnityEngine.Vector3
return float

Property Details

additiveTimer public static property

public static float additiveTimer
return float

colors public static property

public static Color[],UnityEngine colors
return UnityEngine.Color[]

lastAdditiveTimerStart public static property

public static float lastAdditiveTimerStart
return float

lastStartTime public static property

public static float lastStartTime
return float