---
title: "interpolatedPoints(in:by:)"
framework: pencilkit
role: symbol
role_heading: Instance Method
path: "pencilkit/pkstrokepath-swift.struct/interpolatedpoints(in:by:)"
---

# interpolatedPoints(in:by:)

Returns the slice on-curve points using the floating point range and stride that you specify.

## Declaration

```swift
func interpolatedPoints(in range: ClosedRange<CGFloat>? = nil, by stride: PKStrokePath.InterpolatedSlice.Stride) -> PKStrokePath.InterpolatedSlice
```

## Parameters

- `range`: The floating point range for the points of interest.
- `stride`: The stride component of the current slice.

## Return Value

Return Value An interpolated slice whose points are within the specified range.

## See Also

### Accessing and interpolating points

- [interpolatedLocation(at:)](pencilkit/pkstrokepath-swift.struct/interpolatedlocation(at:).md)
- [interpolatedPoint(at:)](pencilkit/pkstrokepath-swift.struct/interpolatedpoint(at:).md)
- [parametricValue(_:offsetBy:)](pencilkit/pkstrokepath-swift.struct/parametricvalue(_:offsetby:).md)
