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

Returns true if the point is contained by the triangle.

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 p,
	Vector2 a,
	Vector2 b,
	Vector2 c
)
Public Shared Function Contains ( _
	p As Vector2, _
	a As Vector2, _
	b As Vector2, _
	c As Vector2 _
) As Boolean
public:
static bool Contains(
	Vector2 p, 
	Vector2 a, 
	Vector2 b, 
	Vector2 c
)

Parameters

p
Vector2
The point to test.
a
Vector2
Vertex A of triangle ABC.
b
Vector2
Vertex B of triangle ABC
c
Vector2
Vertex C of triangle ABC

Return Value

True if the point is contained by the triangle ABC.

Remarks

The test is inclusive of the triangle edges.

See Also