---
title: "distance(to:)"
framework: vision
role: symbol
role_heading: Instance Method
path: "vision/featureprintobservation/distance(to:)"
---

# distance(to:)

Computes the distance between two feature print observations.

## Declaration

```swift
func distance(to featurePrint: FeaturePrintObservation) throws -> Double
```

## Parameters

- `featurePrint`: The feature print object to calculate the distance to.

## Return Value

Return Value The distance between two observations. Shorter distances indicate greater similarity between feature prints.
