pointInPolygon

fun pointInPolygon(position: Position, polygon: Polygon, ignoreBoundary: Boolean = false): Boolean

Takes a Position 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

position

input position

polygon

input polygon

ignoreBoundary

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


fun pointInPolygon(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 pointInPolygon(position: Position, polygon: MultiPolygon, ignoreBoundary: Boolean = false): Boolean

Takes a Position 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

position

input position

polygon

input polygon

ignoreBoundary

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


fun pointInPolygon(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.