BIS fnc randomPosIntersection: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Function|= Comments | arma3 |Game name= |1.82|Game version= <!---|arg= local |Multiplayer Arguments=---> <!---|eff= local |Multiplayer Effects=---> | <pre>/* Author: R...")
 
m (infobox to template)
Line 22: Line 22:
Returns:
Returns:
ARRAY : 2D Position in [x,y] format
ARRAY : 2D Position in [x,y] format
*/</pre>{{Informative|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]]}} |Description=
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_randomPosIntersection]]|Syntax=
|[] call [[BIS_fnc_randomPosIntersection]]|Syntax=

Revision as of 16:27, 2 April 2019

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