public interface Hexagon extends Serializable
Represents a Hexagon.
Please note that all coordinates are relative to theHexagonalGrid containing this Hexagon.| Modifier and Type | Method and Description |
|---|---|
void |
clearSatelliteData()
Clears the satellite data of this Hexagon.
|
AxialCoordinate |
getAxialCoordinate()
Returns the
AxialCoordinate of this Hexagon. |
double |
getCenterX()
Returns the center x (pixel) coordinate of this
Hexagon. |
double |
getCenterY()
Returns the center y (pixel) coordinate of this
Hexagon. |
int |
getGridX()
Returns this
Hexagon's x (axial) coordinate on the HexagonalGrid. |
int |
getGridY()
Returns this
Hexagon's y coordinate on the HexagonalGrid. |
int |
getGridZ()
Returns this
Hexagon's z (axial) coordinate on the HexagonalGrid. |
String |
getId()
|
List<Point> |
getPoints()
|
<T extends SatelliteData> |
getSatelliteData()
Returns this
Hexagon's satellite data. |
<T extends SatelliteData> |
setSatelliteData(T data)
Can be used to add arbitrary satellite data to a
Hexagon. |
String getId()
AxialCoordinate getAxialCoordinate()
AxialCoordinate of this Hexagon.int getGridX()
Hexagon's x (axial) coordinate on the HexagonalGrid.int getGridY()
Hexagon's y coordinate on the HexagonalGrid.
The Y coordinate is not present in the axial model but it is in the cube model.
This method is just for convenience.int getGridZ()
Hexagon's z (axial) coordinate on the HexagonalGrid.double getCenterX()
Hexagon.double getCenterY()
Hexagon.<T extends SatelliteData> Optional<T> getSatelliteData()
Hexagon's satellite data.<T extends SatelliteData> void setSatelliteData(T data)
Hexagon.data - void clearSatelliteData()
Copyright © 2016. All rights reserved.