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

Determines whether or not a point is contained within a circle.

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 Contains(
	Vector2 point,
	Vector2 circle,
	float radius
)
Public Shared Function Contains ( _
	point As Vector2, _
	circle As Vector2, _
	radius As Single _
) As Boolean
public:
static bool Contains(
	Vector2 point, 
	Vector2 circle, 
	float radius
)

Parameters

point
Vector2
The point to test.
circle
Vector2
The center point of the circle.
radius
Single
The radius of the circle.

Return Value

True if the point is contained within the circle.

Remarks

The test is inclusive of the circle boundary.

See Also