<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CAMediaTimingFunction/getControlPoint(at:values:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CAMediaTimingFunction(im)getControlPointAtIndex:values:"
  },
  "title" : "getControlPoint(at:values:)"
}
-->

# getControlPoint(at:values:)

Returns the control point for the specified index.

```
func getControlPoint(at idx: Int, values ptr: UnsafeMutablePointer<Float>)
```

## Parameters

`idx`

An integer specifying the index of the control point to return.

`ptr`

A pointer to an array that, upon return, will contain the x and y values of the specified point.

## Discussion

The value of `index` must be between 0 and 3.

---

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)