[This is preliminary documentation and is subject to change.]

Determines whether or not two circles intersect each other.

Namespace: org.critterai.geom
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static bool Intersects(
	Vector2 acenter,
	float aradius,
	Vector2 bcenter,
	float bradius
)
Public Shared Function Intersects ( _
	acenter As Vector2, _
	aradius As Single, _
	bcenter As Vector2, _
	bradius As Single _
) As Boolean
public:
static bool Intersects(
	Vector2 acenter, 
	float aradius, 
	Vector2 bcenter, 
	float bradius
)

Parameters

acenter
Vector2
The center point of circle A.
aradius
Single
The radius of circle A.
bcenter
Vector2
The center point of circle B.
bradius
Single
The radius of Circle B.

Return Value

True if the circles intersect.

Remarks

Test is inclusive of the circle boundary.

Containment of one circle by another is considered intersection.

See Also