VN_fnc_getRelPosDisp

From Savage Game Design Wiki
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;