Tests of a CLOSED, NON-SELF-INTERSECTING polygon defined by a XY-planar polyline contains a point. The z-coordinate is ignored.

Namespace:  ceometric.ComputationalGeometry
Assembly:  ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.4.0.0 (2.4.0.0)

Syntax

C#
public bool Contains(
	Point p
)
Visual Basic (Declaration)
Public Function Contains ( _
	p As Point _
) As Boolean
Visual C++
public:
bool Contains(
	Point^ p
)

Parameters

p
Type: ceometric.VectorGeometry..::.Point
A point to test.

Return Value

True if the polygon defined by the polyline contains the point, false otherwise.

Remarks

If the polygon is not closed or if it is self-intersecting, the method may return incorrect results. If the point lies on the perimeter of the polygon, this method returns false.

See Also