Table of Contents

Method Contains

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Contains(GeoPoint2)

Checks whether the polygon contains a point using default tolerance (accepts points on the boundary).

public bool Contains(GeoPoint2 GeoPoint2)

Parameters

GeoPoint2 GeoPoint2

Returns

bool

Contains(GeoPoint2, Tolerance)

Checks whether the polygon contains a point (accepts points on the boundary). Uses the Ray Casting algorithm (shoots a horizontal ray and counts intersections).

public bool Contains(GeoPoint2 GeoPoint2, Tolerance tolerance)

Parameters

GeoPoint2 GeoPoint2
tolerance Tolerance

Returns

bool

Contains(GeoPolyline2)

Checks whether the polygon entirely contains a polyline using default tolerance.

public bool Contains(GeoPolyline2 polyline)

Parameters

polyline GeoPolyline2

Returns

bool

Contains(GeoPolyline2, Tolerance)

Checks whether the polygon entirely contains a polyline within tolerance.

public bool Contains(GeoPolyline2 polyline, Tolerance tolerance)

Parameters

polyline GeoPolyline2
tolerance Tolerance

Returns

bool