worldToScreen: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| (description) |= Description
| Converts position in world space into screen (UI) space.<br>If a specified position is not within the current map view, an empty array is returned. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''(command)''' |= Syntax
| '''worldToScreen''' position |= Syntax


|p1= |= PARAMETER1  
|p1= position: [[Array]] - 2D or 3D position |= PARAMETER1  


|p2= |= PARAMETER2  
|p2= |= PARAMETER2  
Line 18: Line 18:
|p3= |= PARAMETER3  
|p3= |= PARAMETER3  


| |= RETURNVALUE  
| [[Position2D]] - Screen position (upper left<nowiki>=</nowiki>[0,0], lower right<nowiki>=</nowiki>[1,1]) |= RETURNVALUE  





Revision as of 16:07, 5 June 2009

Hover & click on the images for description

Description

Description:
Converts position in world space into screen (UI) space.
If a specified position is not within the current map view, an empty array is returned.
Groups:
Uncategorised

Syntax

Syntax:
worldToScreen position
Parameters:
position: Array - 2D or 3D position
Return Value:
Position2D - Screen position (upper left=[0,0], lower right=[1,1])

Examples

Example 1:
_scPos = worldToScreen (getpos player)

Additional Information

See also:
screenToWorld

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