AxisPoint

interface AxisPoint(source)

Interface representing a point in a hexagonal grid using an axial coordinate system (q, r).

The AxisPoint interface represents a point in a hexagonal grid, accounting for both column (q) and row (r) positions.

This interface is particularly useful in scenarios where you need to work with points on a hexagonal grid system, but you don't want to enforce the embedding or implementation of the Coordinates interface in your classes. By representing the coordinates as simple integers, this interface provides a lightweight, straightforward way to include hexagonal grid coordinates in any class.

Inheritors

Properties

Link copied to clipboard
abstract val q: Int

The column coordinate of the point on the hexagonal grid.

Link copied to clipboard
abstract val r: Int

The row coordinate of the point on the hexagonal grid.