<!--
{
  "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/PKStrokePoint-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "s:9PencilKit13PKStrokePointV"
  },
  "title" : "PKStrokePoint"
}
-->

# PKStrokePoint

A structure that represents the properties of a specific point along a stroke’s path.

```
struct PKStrokePoint
```

## Topics

### Creating a stroke point object

[`init(location:timeOffset:size:opacity:force:azimuth:altitude:)`](/documentation/PencilKit/PKStrokePoint-swift.struct/init(location:timeOffset:size:opacity:force:azimuth:altitude:))

Creates a new point with the provided properties.

[`init(location:timeOffset:size:opacity:force:azimuth:altitude:secondaryScale:)`](/documentation/PencilKit/PKStrokePoint-swift.struct/init(location:timeOffset:size:opacity:force:azimuth:altitude:secondaryScale:))

[`init(location:timeOffset:size:opacity:force:azimuth:altitude:secondaryScale:threshold:)`](/documentation/PencilKit/PKStrokePoint-swift.struct/init(location:timeOffset:size:opacity:force:azimuth:altitude:secondaryScale:threshold:))

Creates a stroke point with the specified properties, including a rendering threshold.

[`init(location:timeOffset:size:opacity:force:azimuth:altitude:secondaryScale:threshold:lateralJitter:)`](/documentation/PencilKit/PKStrokePoint-swift.struct/init(location:timeOffset:size:opacity:force:azimuth:altitude:secondaryScale:threshold:lateralJitter:))

Creates a stroke point with the specified properties, including lateral jitter.

### Getting the point’s location

[`location`](/documentation/PencilKit/PKStrokePoint-swift.struct/location)

The location of this point.

[`timeOffset`](/documentation/PencilKit/PKStrokePoint-swift.struct/timeOffset)

The time offset since the start of the stroke path in seconds.

### Getting the point’s touch data

[`altitude`](/documentation/PencilKit/PKStrokePoint-swift.struct/altitude)

The altitude of this point in radians.

[`azimuth`](/documentation/PencilKit/PKStrokePoint-swift.struct/azimuth)

The azimuth of this point in radians.

[`force`](/documentation/PencilKit/PKStrokePoint-swift.struct/force)

The amount of force applied by the touch.

### Getting the point’s drawing data

[`size`](/documentation/PencilKit/PKStrokePoint-swift.struct/size)

The size of this point.

[`opacity`](/documentation/PencilKit/PKStrokePoint-swift.struct/opacity)

Opacity of the point.

[`secondaryScale`](/documentation/PencilKit/PKStrokePoint-swift.struct/secondaryScale)

[`threshold`](/documentation/PencilKit/PKStrokePoint-swift.struct/threshold)

The alpha threshold for clipping the stroke rendering for supported inks.

[`lateralJitter`](/documentation/PencilKit/PKStrokePoint-swift.struct/lateralJitter)

The amount of lateral particle jitter at the stroke edge for supported inks.

### Using reference types

[`PKStrokePointReference`](/documentation/PencilKit/PKStrokePointReference)

A class that represents the properties of a specific point along a stroke’s path.



---

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)