CBA_fnc_mapRelPos

Description

Find a position relative to a known position on the map.

Passing strings in for the Northing and Easting is the preferred way.

Parameters

_posPosition in 10 digit grid format [Easting, Northing] [Array]
_distDistance from the starting position [Number]
_dirDirection from the starting position [Number]

Returns

New grid reference (10 digit) in format [Easting, Northing]

Examples

_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)

Close