---
title: "enumerateInterpolatedPoints(in:strideByParametricStep:using:)"
framework: pencilkit
role: symbol
role_heading: Instance Method
path: "pencilkit/pkstrokepathreference/enumerateinterpolatedpoints(in:stridebyparametricstep:using:)"
---

# enumerateInterpolatedPoints(in:strideByParametricStep:using:)

Executes a given block using each point in a range with a parametric step.

## Declaration

```swift
func enumerateInterpolatedPoints(in range: __PKFloatRange, strideByParametricStep parametricStep: CGFloat, using block: @escaping (PKStrokePoint, UnsafeMutablePointer<ObjCBool>) -> Void)
```

## Parameters

- `range`: The parametric range in which to enumerate points.
- `parametricStep`: The parametric step between points.
- `block`: The block to execute for each point. This block takes two parameters: point —The interpolated point on the spline. stop —A reference to a Boolean value. Setting the value to YES within the block stops further enumeration, but the block continues to run until it’s finished.

## See Also

### Accessing and interpolating points

- [enumerateInterpolatedPoints(in:strideByDistance:using:)](pencilkit/pkstrokepathreference/enumerateinterpolatedpoints(in:stridebydistance:using:).md)
- [enumerateInterpolatedPoints(in:strideByTime:using:)](pencilkit/pkstrokepathreference/enumerateinterpolatedpoints(in:stridebytime:using:).md)
- [interpolatedLocation(at:)](pencilkit/pkstrokepathreference/interpolatedlocation(at:).md)
- [interpolatedPoint(at:)](pencilkit/pkstrokepathreference/interpolatedpoint(at:).md)
- [parametricValue(_:offsetByDistance:)](pencilkit/pkstrokepathreference/parametricvalue(_:offsetbydistance:).md)
- [parametricValue(_:offsetByTime:)](pencilkit/pkstrokepathreference/parametricvalue(_:offsetbytime:).md)
- [point(at:)](pencilkit/pkstrokepathreference/point(at:).md)
- [subscript(_:)](pencilkit/pkstrokepathreference/subscript(_:).md)
