Gets the element type and (and optionally) the associated points for the path element at the specified index.
- macOS 10.0+
The index of the desired path element.
On input, a C-style array containing up to three
NSPointdata types, or
NULLif you do not want the points. On output, the data points associated with the specified path element.
The type of the path element. For a list of constants, see
If you specify a value for the points parameter, your array must be large enough to hold the number of points for the given path element. Move, close path, and line segment commands return one point. Curve operations return three points.
For curve operations, the order of the points is controlPoint1 (
points), controlPoint2 (
points), endPoint (