<!--
{
  "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/PKStrokePointReference",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PKStrokePoint"
  },
  "title" : "PKStrokePointReference"
}
-->

# PKStrokePointReference

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

```
class PKStrokePointReference
```

## Topics

### Creating a stroke point object

[`init(location: CGPoint, timeOffset: TimeInterval, size: CGSize, opacity: CGFloat, force: CGFloat, azimuth: CGFloat, altitude: CGFloat)`](/documentation/PencilKit/PKStrokePointReference/init(location:timeOffset:size:opacity:force:azimuth:altitude:))

Creates a new point with the provided properties.

[`init(location: CGPoint, timeOffset: TimeInterval, size: CGSize, opacity: CGFloat, force: CGFloat, azimuth: CGFloat, altitude: CGFloat, secondaryScale: CGFloat)`](/documentation/PencilKit/PKStrokePointReference/init(location:timeOffset:size:opacity:force:azimuth:altitude:secondaryScale:))

### Getting the point’s location

[`var location: CGPoint`](/documentation/PencilKit/PKStrokePointReference/location)

The location of this point.

[`var timeOffset: TimeInterval`](/documentation/PencilKit/PKStrokePointReference/timeOffset)

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

### Getting the point’s touch data

[`var altitude: CGFloat`](/documentation/PencilKit/PKStrokePointReference/altitude)

The altitude of this point in radians.

[`var azimuth: CGFloat`](/documentation/PencilKit/PKStrokePointReference/azimuth)

The azimuth of this point in radians.

[`var force: CGFloat`](/documentation/PencilKit/PKStrokePointReference/force)

The amount of force applied by the touch.

### Getting the point’s drawing data

[`var size: CGSize`](/documentation/PencilKit/PKStrokePointReference/size)

The size of the point.

[`var opacity: CGFloat`](/documentation/PencilKit/PKStrokePointReference/opacity)

Opacity of the point.

[`var secondaryScale: CGFloat`](/documentation/PencilKit/PKStrokePointReference/secondaryScale)

### Initializers

[`init(location: CGPoint, timeOffset: TimeInterval, size: CGSize, opacity: CGFloat, force: CGFloat, azimuth: CGFloat, altitude: CGFloat, secondaryScale: CGFloat, threshold: CGFloat)`](/documentation/PencilKit/PKStrokePointReference/init(location:timeOffset:size:opacity:force:azimuth:altitude:secondaryScale:threshold:))

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

[`init(location: CGPoint, timeOffset: TimeInterval, size: CGSize, opacity: CGFloat, force: CGFloat, azimuth: CGFloat, altitude: CGFloat, secondaryScale: CGFloat, threshold: CGFloat, lateralJitter: CGFloat)`](/documentation/PencilKit/PKStrokePointReference/init(location:timeOffset:size:opacity:force:azimuth:altitude:secondaryScale:threshold:lateralJitter:))

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

### Instance Properties

[`var lateralJitter: CGFloat`](/documentation/PencilKit/PKStrokePointReference/lateralJitter)

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

[`var threshold: CGFloat`](/documentation/PencilKit/PKStrokePointReference/threshold)

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

## Relationships

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Sendable`](/documentation/Swift/Sendable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)