Class ROT.FOV
Abstract FOV algorithm
Defined in: <rot.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
ROT.FOV(lightPassesCallback, options)
|
Method Attributes | Method Name and Description |
---|---|
compute(x, y, R, callback)
Compute visibility for a 360-degree circle
|
Class Detail
ROT.FOV(lightPassesCallback, options)
- Parameters:
- {function} lightPassesCallback
- Does the light pass through x,y?
- {object} options Optional
- {int} options.topology Optional, Default: 8
- 4/6/8
Method Detail
compute(x, y, R, callback)
Compute visibility for a 360-degree circle
- Parameters:
- {int} x
- {int} y
- {int} R
- Maximum visibility radius
- {function} callback