---
title: "distance_squared(_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/distance_squared(_:_:)-4erc0"
---

# distance_squared(_:_:)

## Declaration

```swift
func distance_squared(_ x: SIMD3<Double>, _ y: SIMD3<Double>) -> Double
```

## See Also

### Length and Distance Functions

- [length(_:)](simd/length(_:)-907xq.md)
- [length_squared(_:)](simd/length_squared(_:)-620zs.md)
- [distance(_:_:)](simd/distance(_:_:)-57zfj.md)
