BIS_fnc_randomPosIntersection

From Bohemia Interactive Community
Revision as of 13:36, 25 December 2018 by R3vo (talk | contribs) (Created page with "{{Function|= Comments | arma3 |Game name= |1.82|Game version= <!---|arg= local |Multiplayer Arguments=---> <!---|eff= local |Multiplayer Effects=---> | <pre>/* Author: R...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
*/
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki
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