Gets the direction between two map grid references.
_pos1 | Origin position array in format [Easting, Northing] [Array] |
_pos2 | End position in format [Easting, Northing] [Array] |
Direction from _pos1 to _pos2 [Number]
_dir = [[024,015], [025,014]] call CBA_fnc_mapDirTo; // _dir will be 45 degrees
_dir = [["024","015"], ["025","014"]] call CBA_fnc_mapDirTo; // _dir will be 45 degrees
_dir = ["024015", "025014"] call CBA_fnc_mapDirTo; // _dir will be 45 degrees
Nou (with credit to Headspace for the real math :p)