Difference between revisions of "VN fnc getRelPosDisp"
Jump to navigation
Jump to search
(Created page with "{{Function |v= 1.00 |author=Dscha |a= |e= |g1= wheelmenu |d= <pre>Get relative Position on Display (4:3 to current AspectRatio).</pre> |s= [_center,_distance,_angle,_angl...") |
(No difference)
|
Latest revision as of 20:46, 4 May 2022
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Dscha |
|
Description
Get relative Position on Display (4:3 to current AspectRatio).
Syntax
- Syntax
- [_center,_distance,_angle,_angle_offset] call VN_fnc_getRelPosDisp;
- Parameters
- _center: Array - (Optional, default
[0.5,0.5]
) CenterPoint - Position to check - _distance: Number - (Optional, default
0.1
) Distance to CenterPoint - _angle: Number - (Optional, default
0
) Angle 0..360 - _angle_offset: Number - (Optional, default
0
) Offset to Angle - Return value
- Array - UI-Coords of relative Position
Examples
- Example 1
[ [0.5, 0.5], (pixelW * pixelGrid * 14.5), (360/10), -90] call vn_fnc_getRelPosDisp;