Functions for working with orientations.
local Orientation = require('__stdlib__/stdlib/area/orientation')
to_direction(orientation[, eight_way=false]) | Returns a 4way or 8way direction from an orientation. |
opposite(orientation) | Returns the opposite orientation. |
add(orientation1, orientation2) | Add two orientations together. |
north | north orientation |
east | east orientation |
west | west orientation |
south | south orientation |
northeast | northeast orientation |
northwest | northwest orientation |
southeast | southeast orientation |
southwest | southwest orientation |