Skip to content
VN_fnc_getRelPosDisp

VN_fnc_getRelPosDisp

Get relative Position on Display (4:3 to current AspectRatio).

Syntax

[_center,_distance,_angle,_angle_offset] call VN_fnc_getRelPosDisp;

Parameters

ParameterTypeDefaultDescription
_center Array[0.5,0.5] CenterPoint - Position to check
_distance Number0.1 Distance to CenterPoint
_angle Number0 Angle 0..360
_angle_offset Number0 Offset to Angle

Return value

Array - UI-Coords of relative Position

Examples

[ [0.5, 0.5], (pixelW * pixelGrid * 14.5), (360/10), -90] call vn_fnc_getRelPosDisp;

Documented by Dscha.