<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGPathContainsPoint",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGPathContainsPoint"
  },
  "title" : "CGPathContainsPoint"
}
-->

# CGPathContainsPoint

Checks whether a point is contained in a graphics path.

```
extern bool CGPathContainsPoint(CGPathRef path, const CGAffineTransform *m, CGPoint point, bool eoFill);
```

## Parameters

`path`

The path to evaluate the point against.

`m`

An affine transform. If `m` is not `NULL` then the point is transformed by this affine transform prior to determining whether the path contains the point.

`point`

The point to check.

`eoFill`

A Boolean value that, if <doc://com.apple.documentation/documentation/Swift/true>, specifies to use the even-odd fill rule to evaluate the painted region of the path. If <doc://com.apple.documentation/documentation/Swift/false>, the winding fill rule is used.

## Return Value

Returns <doc://com.apple.documentation/documentation/Swift/true> if the point is contained in the path; <doc://com.apple.documentation/documentation/Swift/false> otherwise.

## Discussion

A point is contained in a path if it would be inside the painted region when the path is filled.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)