BIS_fnc_randomPosIntersection

From Bohemia Interactive Community
Revision as of 15:27, 2 April 2019 by Erentar (talk | contribs) (infobox to template)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
/*
	Author: Riccardo Argiolas

	Description:
	Returns random 2D position inside the intersection of two circles. [-1,-1] is returned if the circles do not intersect.

 	Parameters:
 	Select 0 - OBJECT/STRING/ARRAY : First circle. Can be a trigger, a marker or an array of [circleCenter, radius], where circleCenter is [xCenterPosition, yCenterPosition]
	Select 1 - OBJECT/STRING/ARRAY : Second circle. Same as above.
	Select 2 - NUMBER : 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 circle.
	Select 3 - NUMBER : 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 in [x,y] format
*/
Template:placeholder
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[] call BIS_fnc_randomPosIntersection
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example 1:

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note