rays

Usage

rays <coord> <move-dir1> <move-dir2>

Return value

Array of coordinates of all spaces within "rays" of movement beyond <coord>. Specifically, it includes all spaces reachable from <coord> by moving <move-dir1> squares horizontally and <move-dir2> vertically, plus those reachable by moving <move-dir2> squares horizontally and <move-dir1> vertically.

Example

See also

ray

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.