field Of View
Generates a field of view from a specified point.
Return
A set of HexCoordinates that represents all visible coordinates in the field of view.
Parameters
The starting point of the field of view.
A function to indicate whether a coordinate blocks vision.
Generates a field of view from a specified point.
Parameters
The starting point of the field of view.
A function to indicate whether a coordinate blocks vision.
An optional callback function that is called for every visible coordinate in the field of view.
Generates a field of view from a specified point.
Parameters
The starting point (q) of the field of view.
The starting point (r) of the field of view.
A function to indicate whether a coordinate blocks vision.
An optional callback function that is called for every visible coordinate in the field of view.