ORK Framework  2.22.0
API Documentation
ORKFramework.CubeCoord Class Reference
Inheritance diagram for ORKFramework.CubeCoord:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

 CubeCoord (int x, int y, int z)
 CubeCoord (CubeCoord coord)
override string ToString ()
override bool Equals (object obj)
override int GetHashCode ()
void ToOffset (ref int row, ref int column)
void TotHorizontalEven (ref int row, ref int column)
void TotHorizontalOdd (ref int row, ref int column)
void ToVerticalEven (ref int row, ref int column)
void ToVerticalOdd (ref int row, ref int column)
Vector3 ToVector3 ()
int Distance (CubeCoord target)
int Distance (CubeCoord target, bool blockDiagonalDistance1)
CubeCoord Rotate (int turns)
void SetAdd (CubeCoord set, CubeCoord add)
void SetAdd (CubeCoord set, int x, int y, int z)
void Set (CubeCoord other)
void Set (int x, int y, int z)
void Add (CubeCoord other)
void Add (int x, int y, int z)
void Scale (int scale)
- Public Member Functions inherited from ORKFramework.BaseData
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
virtual void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
virtual void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...

Static Public Member Functions

static CubeCoord FromOffset (int row, int column)
static CubeCoord FromVerticalOdd (int row, int column)
static CubeCoord FromVector3 (Vector3 value)
static bool IsSquareDiagonal (CubeCoord origin, CubeCoord target)
static int ZeroDistanceSquareDiagonal (int x, int y)
static int ZeroDistanceSquareNonDiagonal (int x, int y)
static int ZeroDistanceHexagonal (int x, int y, int z)
static CubeCoord operator+ (CubeCoord c1, CubeCoord c2)
static CubeCoord operator- (CubeCoord c1, CubeCoord c2)
static CubeCoord operator* (CubeCoord c, int scale)
static bool operator== (CubeCoord c1, CubeCoord c2)
static bool operator!= (CubeCoord c1, CubeCoord c2)
static CubeCoord Round (Vector3 coord)
static Vector3 Lerp (CubeCoord origin, CubeCoord target, float time)
static Vector3 Lerp (CubeCoord origin, Vector3 target, float time)

Public Attributes

int x = 0
int y = 0
int z = 0


bool IsZero [get]