---
title: "getControlPoint(at:values:)"
framework: quartzcore
role: symbol
role_heading: Instance Method
path: "quartzcore/camediatimingfunction/getcontrolpoint(at:values:)"
---

# getControlPoint(at:values:)

Returns the control point for the specified index.

## Declaration

```swift
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

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