BIS fnc randomPosIntersection: Difference between revisions
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>{{ | */</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description= | ||
|[] call [[BIS_fnc_randomPosIntersection]]|Syntax= | |[] call [[BIS_fnc_randomPosIntersection]]|Syntax= |
Revision as of 15:27, 2 April 2019
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