public final class CoordinateConverter extends Object
| Constructor and Description |
|---|
CoordinateConverter() |
| Modifier and Type | Method and Description |
|---|---|
static int |
convertOffsetCoordinatesToCubeX(int offsetX,
int offsetY,
HexagonOrientation orientation)
Calculates the cube X coordinate based on an offset coordinate pair.
|
static int |
convertOffsetCoordinatesToCubeZ(int offsetX,
int offsetY,
HexagonOrientation orientation)
Calculates the cube Z coordinate based on an offset coordinate pair.
|
public static int convertOffsetCoordinatesToCubeX(int offsetX,
int offsetY,
HexagonOrientation orientation)
offsetX - offset xoffsetY - offset yorientation - orientationpublic static int convertOffsetCoordinatesToCubeZ(int offsetX,
int offsetY,
HexagonOrientation orientation)
offsetX - offset xoffsetY - offset yorientation - orientationCopyright © 2016. All rights reserved.