BIS_fnc_randomPosIntersection

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version1.82
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.82

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)

Syntax

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

Examples

Example 1:
Example needed

Additional Information

Execution:
call
Multiplayer:
-
See also:
See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To