booleanPointInPolygon

fun booleanPointInPolygon(point: Point, polygon: Polygon, ignoreBoundary: Boolean = false): Boolean

Takes a Point and a Polygon and determines if the point resides inside the polygon. The polygon can be convex or concave. The function accounts for holes.

Return

true if the Position is inside the Polygon; false if the Position is not inside the Polygon

Parameters

point

input point

polygon

input polygon

ignoreBoundary

True if polygon boundary should be ignored when determining if the point is inside the polygon otherwise false.


fun booleanPointInPolygon(point: Point, polygon: MultiPolygon, ignoreBoundary: Boolean = false): Boolean

Takes a Point and a MultiPolygon and determines if the point resides inside the polygon. The polygon can be convex or concave. The function accounts for holes.

Return

true if the Position is inside the Polygon; false if the Position is not inside the Polygon

Parameters

point

input point

polygon

input multipolygon

ignoreBoundary

True if polygon boundary should be ignored when determining if the point is inside the polygon otherwise false.