BIS fnc posDegToWorld: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Created page with "{{Function|= Comments ____________________________________________________________________________________________ | TKOH |= Game name |1.00|= Game version ____________________...")
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| tkoh |= Game name
| TKOH |= Game name


|1.00|= Game version
|1.00|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Convert latitude/longtitude coordinates into game world position.


Description:
World config has to contain following settings to convert the position correctly.
Convert latitude/longtitude coordinates into game world position
// Required for scripting
 
mapSize <nowiki>=</nowiki> 61440; {{codecomment|//--- Can differ from mapArea size, as ingame world can be resized}}
Parameter(s):
mapZone <nowiki>=</nowiki> 10; {{codecomment|//--- UTM zone}}
_this select 0: longtitude (X)
mapArea[] <nowiki>=</nowiki> { {{codecomment|//--- lon/lat coordinates (not in UTM to assure .kml precision)}}
_this select 1: latitude (Y)
-122.754367782585,47.3272454065969, {{codecomment|//--- Bottom Left}}
-121.930117859276,47.8753494907418 {{codecomment|//--- Top Right}}
};
|= Description
____________________________________________________________________________________________


Returns:
| [latitude,longtitude] call BIS_fnc_posDegToWorld; |= Syntax
ARRAY - [x,y]
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p1= latitude: [[Number]] |= Parameter 1
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_posDegToWorld]]; --> |= Syntax
|p2= longtitude - [[Number]] |= Parameter 2


|p1= |= Parameter 1
| [[Array]] - [northing,easting,zone] |= Return value
 
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
 
 
|x1= <code></code> |=  
|x1= <code>[47.63959,-122.127249] call BIS_fnc_posDegToWorld;</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 46: Line 44:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Map|{{uc:posDegToWorld}}]]
 
[[Category:Functions|{{uc:posDegToWorld}}]]
[[Category:Take_On_Helicopters:_Functions|posDegToWorld]]
[[Category:{{Name|tkoh}}: Functions|{{uc:posDegToWorld}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:posDegToWorld}}]]

Revision as of 18:32, 21 October 2011

Hover & click on the images for description

Description

Description:
Convert latitude/longtitude coordinates into game world position. World config has to contain following settings to convert the position correctly. // Required for scripting mapSize = 61440; //--- Can differ from mapArea size, as ingame world can be resized mapZone = 10; //--- UTM zone mapArea[] = { //--- lon/lat coordinates (not in UTM to assure .kml precision) -122.754367782585,47.3272454065969, //--- Bottom Left -121.930117859276,47.8753494907418 //--- Top Right };
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[latitude,longtitude] call BIS_fnc_posDegToWorld;
Parameters:
latitude: Number
longtitude - Number
Return Value:
Array - [northing,easting,zone]

Examples

Example 1:
[47.63959,-122.127249] call BIS_fnc_posDegToWorld;

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section