cubic coordinates for hexagonal tiles
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | q |
constrained by q+r+s==0 |
|||
| integer, | public | :: | r |
constrained by q+r+s==0 |
|||
| integer, | public | :: | s |
constrained by q+r+s==0 |
constructor override
Safe cubic constructor for the hex type featuring an assertion on input coordinates before the initialization of the object
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | q | |||
| integer, | intent(in) | :: | r | |||
| integer, | intent(in) | :: | s |
Axial cubic constructor for the hex type [s would be computed internally]
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | q | |||
| integer, | intent(in) | :: | r |