Contents

contains(_:eoFill:)

Returns true if the path contains a specified point.

Declaration

func contains(_ p: CGPoint, eoFill: Bool = false) -> Bool

Discussion

If eoFill is true, this method uses the even-odd rule to define which points are inside the path. Otherwise, it uses the non-zero rule.

See Also

Getting the path’s characteristics