From Hex Coordinates
This interface provides a single method to transform instances of HexCoordinates into an arbitrary, but specific, subtype of Coordinates. This is particularly useful when functions generate new values inside a specific coordinate system and these need to be represented, or 'converted', into another domain-specific coordinate system.
This contract makes no assumptions about the semantics of the involved transformations and, as such, accommodates for multiple, diverse implementations based on the specific needs of the HexCoordinates and the target coordinates subtype.
Parameters
T
The target subtype of Coordinates into which HexCoordinates should be transformed.
Inheritors
Functions
Link copied to clipboard
Transforms the given this from HexCoordinates into the corresponding subtype of Coordinates.