Click or drag to resize

GeometryContainsPointInPolygon Method

Determine if coordinates are included in the specified polygon.

Namespace:  RootPro.RootProCAD.Geometry
Assembly:  RootPro.RootProCAD.Library (in RootPro.RootProCAD.Library.dll) Version: 12.0.0.0 (12.0.0.0)
Syntax
public abstract int ContainsPointInPolygon(
	Point2d point,
	Point2d[] polygon
)

Parameters

point
Type: RootPro.RootProCAD.GeometryPoint2d
coordinates
polygon
Type: RootPro.RootProCAD.GeometryPoint2d
an array of Point2d representing a polygon

Return Value

Type: Int32
  • 0 - polygon.
  • ± 1 - on the polygon line.
  • ± 2 - polygon.
  • ± 3 - Line on double loop.
  • ± 4 - In a double loop.
See Also