<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNPoint",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:objc(cs)VNPoint"
  },
  "title" : "VNPoint"
}
-->

# VNPoint

An immutable object that represents a single 2D point in an image.

```
class VNPoint
```

## Topics

### Creating a Point

[`init(x:y:)`](/documentation/Vision/VNPoint/init(x:y:))

Creates a point object with the specified coordinates.

[`init(location:)`](/documentation/Vision/VNPoint/init(location:))

Creates a point object from the specified Core Graphics point.

[`init(coder:)`](/documentation/Vision/VNPoint/init(coder:))

[`apply(_:to:)`](/documentation/Vision/VNPoint/apply(_:to:))

Creates a point object that’s shifted by the X and Y offsets of the specified vector.

[`zero`](/documentation/Vision/VNPoint/zero)

A point object that represents the origin.

### Inspecting a Point

[`x`](/documentation/Vision/VNPoint/x)

The x-coordinate.

[`y`](/documentation/Vision/VNPoint/y)

The y-coordinate.

[`location`](/documentation/Vision/VNPoint/location)

The Core Graphics point for this point.

### Calculating Distance

[`distance(_:)`](/documentation/Vision/VNPoint/distance(_:))

Returns the distance to another point.

[`distance(_:_:)`](/documentation/Vision/VNPoint/distance(_:_:))

Calculates the distance between two points.



---

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)