public interface Hexagon<T extends SatelliteData>
HexagonalGrid containing this Hexagon.| Modifier and Type | Method and Description |
|---|---|
void |
clearSatelliteData()
Clears the satellite data 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. |
CubeCoordinate |
getCubeCoordinate()
Returns the
CubeCoordinate of this Hexagon. |
int |
getGridX()
Returns this
Hexagon's x (cube) coordinate on the HexagonalGrid. |
int |
getGridY()
Returns this
Hexagon's y coordinate on the HexagonalGrid. |
int |
getGridZ()
Returns this
Hexagon's z (cube) coordinate on the HexagonalGrid. |
String |
getId()
|
Collection<Point> |
getPoints()
|
Optional<T> |
getSatelliteData()
Returns this
Hexagon's satellite data. |
void |
setSatelliteData(T data)
Can be used to add arbitrary satellite data to a
Hexagon. |
String getId()
Collection<Point> getPoints()
CubeCoordinate getCubeCoordinate()
CubeCoordinate of this Hexagon.int getGridX()
Hexagon's x (cube) coordinate on the HexagonalGrid.int getGridY()
Hexagon's y coordinate on the HexagonalGrid.
The Y coordinate is not present in the cube model but it is in the cube model.
This method is just for convenience.int getGridZ()
Hexagon's z (cube) coordinate on the HexagonalGrid.double getCenterX()
Hexagon.double getCenterY()
Hexagon.void setSatelliteData(T data)
Hexagon.void clearSatelliteData()
Copyright © 2016. All rights reserved.