VN_fnc_getRelPosDisp

From Savage Game Design Wiki
Revision as of 20:46, 4 May 2022 by Slow (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Dscha
Argument(s): n/a
Effect(s): unknown

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;