<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PencilKit",
  "identifier" : "/documentation/PencilKit/PKStrokePath-swift.struct/interpolatedPoints(in:by:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "s:9PencilKit12PKStrokePathV18interpolatedPoints2in2byAC17InterpolatedSliceVSNy14CoreFoundation7CGFloatVGSg_AH6StrideOtF"
  },
  "title" : "interpolatedPoints(in:by:)"
}
-->

# interpolatedPoints(in:by:)

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

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

An interpolated slice whose points are within the specified `range`.

---

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)