contains

Takes a Position and one or more Polygon and determines if the position resides inside the polygons. The polygons can be convex or concave. The function accounts for holes. A position on the boundary is considered to be inside.

Return

true if the Position is inside the Polygon. A position on the boundary is considered to be inside.


fun PolygonGeometry.contains(pos: Position, ignoreBoundary: Boolean): Boolean(source)

Takes a Position and one or more Polygon and determines if the position resides inside the polygons. The polygons 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

pos

input point

ignoreBoundary

True if the polygon boundary should not be considered to be inside the polygon.