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

# distance(to:)

Returns the distance between two points.

## Declaration

```swift
func distance(to other: Point3D) -> Double
```

## Parameters

- `other`: The point to calculate the distance to.

## Return Value

Return Value The distance between two points.
