Description
Returns random 2D position inside the intersection of two circles. [-1,-1] is returned if the circles do not intersect.
Syntax
[firstCircle, secondCircle, positioning1, positioning2] call BIS_fnc_randomPosIntersection
Parameters:
firstCircle: Object, String or Array - first circle. Can be a trigger, a marker or an array in formsecondCircle: Object, String or Array - second circle. Same as above.positioning1: Number - (Optional, default -1) if a value between 0 and 1 is passed (0 and 1 included), then a gaussian distribution is used. This will influence the random position along the axis which connects the two circles' centers. A lower value means the position will be close to the first circlepositioning2: Number - (Optional, default -1) if a value between 0 and 1 is passed (0 and 1 included), then a gaussian distribution is used. This will influence the random position along the axis perpendicular to the axis which connects the two circles' centers
Returns: Array - 2D Position
Examples
Example 1
[trigger1, trigger2, 0.75, 0.75] call BIS_fnc_randomPosIntersection;