Creates a new PreciseShadowcasting object which can calulate viewsheds.
Calculates an array of visible Vectors. Same as calculateCallback, but returns an Array instead.
Vector2 - The position to start from.
Number - The range of vision
Calculates visible positions, and invokes the given callback for each one.
Vector2 - The position to start from
Number - The range of vision
(pos: Vector2, range: number, visibility: number) => void - The function to call for each visible tile
Generated using TypeDoc
FOV Algorithm that calculates angles of shadows and merges them together.