Represents a Field Of View in a grid.
There's a lot of usage, a classic one is to display the visibles tiles around a player in a 2D game.
Any type of data.
The grid for which to compute the FOV.
A callback function used to determine if a cell doesn't let the "light" passes through.
The options related to the computation.
Computes the FOV on the given position.
The position on which to start the computation.
The FOV computation result.
Generated using TypeDoc
Represents a Field Of View in a grid.
There's a lot of usage, a classic one is to display the visibles tiles around a player in a 2D game.