---
title: simd_distance_squared
framework: simd
role: symbol
role_heading: Function
path: simd/simd_distance_squared-m1wr
---

# simd_distance_squared

Returns the square of the distance between two vectors.

## Declaration

```occ
static _Float16 simd_distance_squared(simd_half16 __x, simd_half16 __y);
```

## See Also

### Length and distance functions

- [simd_length](simd/simd_length-576ia.md)
- [simd_fast_length](simd/simd_fast_length-3ecug.md)
- [simd_precise_length](simd/simd_precise_length-bxb3.md)
- [simd_length_squared](simd/simd_length_squared-7mlpe.md)
- [simd_distance](simd/simd_distance-2dror.md)
- [simd_fast_distance](simd/simd_fast_distance-1pqse.md)
- [simd_precise_distance](simd/simd_precise_distance-wp3e.md)
