| Package | Description |
|---|---|
| de.gsi.chart.renderer.spi.hexagon |
| Modifier and Type | Field and Description |
|---|---|
GridPosition |
Hexagon.position |
| Modifier and Type | Method and Description |
|---|---|
GridPosition |
GridPosition.clone() |
GridPosition |
GridPosition.getNeighborPosition(HexagonMap.Direction direction)
Finds the adjacent position in the specified direction from this position
|
static GridPosition |
GridPosition.hexRound(double q,
double r)
Finds the position that best matches given non-integer coordinates
|
static GridPosition |
GridDrawer.pixelToPosition(int x,
int y,
int hexagonHeight,
int xPadding,
int yPadding) |
| Modifier and Type | Method and Description |
|---|---|
List<GridPosition> |
GridPosition.getPositionsInCircleArea(int radius) |
List<GridPosition> |
GridPosition.getPositionsOnCircleEdge(int radius)
Finds all positions that are on the edge of a circle in which this position is the centre.
|
List<GridPosition> |
GridPosition.line(GridPosition destination)
Finds all GridPositions that are on a getLine between this and the given position (the array includes this and
the destination positions)
|
| Modifier and Type | Method and Description |
|---|---|
HexagonMap.Direction |
GridPosition.getDirectionTo(GridPosition otherPosition) |
int |
GridPosition.getDistance(GridPosition target) |
static int |
GridPosition.getDistance(GridPosition a,
GridPosition b)
Calculates the grid distance between two positions
|
Hexagon |
HexagonMap.getHexagon(GridPosition position) |
boolean |
GridPosition.isAdjacent(GridPosition otherPosition) |
List<GridPosition> |
GridPosition.line(GridPosition destination)
Finds all GridPositions that are on a getLine between this and the given position (the array includes this and
the destination positions)
|
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.