Polygon
public struct Polygon
Undocumented
-
Undocumented
Declaration
Swift
public init(points: [Point])
-
Check if the polygon contains a point
Declaration
Swift
public func contains(_ point: Point, onLine: Bool) -> Bool
Parameters
point
The point to check
onLine
true
if the contains check should succeed when the point is right on the edge of the polygonReturn Value
Whether the polygon contains the point