Find a position relative to a known position on the map.
Passing strings in for the Northing and Easting is the preferred way.
_pos | Position in 10 digit grid format [Easting, Northing] [Array] |
_dist | Distance from the starting position [Number] |
_dir | Direction from the starting position [Number] |
New grid reference (10 digit) in format [Easting, Northing]
_endPos = [[024,015], 20, 45] call CBA_fnc_mapRelPos;
// preferred _endPos = [["024","015"], 20, 45] call CBA_fnc_mapRelPos;
Author: Nou (with credit to Headspace, Rommel & Meat187 for the real math :p)