{"name":"BIS_fnc_posDegToWorld","operator":null,"title":"BIS fnc posDegToWorld","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_posDegToWorld","revid":328506,"updated":"2022-07-13T16:23:48Z","groups":["Map and Markers"],"status":"ok","replaced_by":[],"games":[{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Convert latitude/longtitude coordinates into game world position.\n\nWorld config **must** contain following settings to convert the position correctly:\n\n```cpp\n// Required for scripting\nmapSize = 61440;    // Can differ from mapArea size, as ingame world can be resized\nmapZone = 10;        // UTM zone\nmapArea[] = {        // lon/lat coordinates (not in UTM to assure .kml precision)\n    -122.754367782585,47.3272454065969,    // Bottom Left\n    -121.930117859276,47.8753494907418    // Top Right\n};\n```","syntaxes":[{"syntax":"[longitude, latitude, world] call BIS_fnc_posDegToWorld","since":null,"effect":null,"exec":null,"params":[{"name":"longitude","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"longitude: Number"},{"name":"latitude","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"latitude: Number"},{"name":"world","type":"String","optional":true,"default":"worldName","description":null,"types":["String"],"since":null,"text":"world: String - (Optional, default worldName)"}],"returns":{"type":"Array of Numbers","types":["Array","Number"],"description":"format [easting, northing, zone]","text":"Array of Numbers - format [easting, northing, zone]"}}],"examples":[{"text":"```sqf\n[47.63959,-122.127249] call BIS_fnc_posDegToWorld;\n```","code":["[47.63959,-122.127249] call BIS_fnc_posDegToWorld;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_posDegToUTM","BIS_fnc_posUTMToDeg"],"notes":[],"categories":["Arma 3: Functions","Function Group: Map and Markers","Functions","Introduced with Take On Helicopters version 1.00","Take On Helicopters: Functions","Take On Helicopters: New Functions"],"docblock":null,"filled_from_docblock":[]}