---
title: "length_squared(_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/length_squared(_:)-8odp0"
---

# length_squared(_:)

Returns the square of the length of a vector.

## Declaration

```swift
func length_squared(_ x: SIMD3<Float>) -> Float
```

## See Also

### Length and Distance Functions

- [length(_:)](simd/length(_:)-6t47g.md)
- [distance(_:_:)](simd/distance(_:_:)-8t6ut.md)
- [distance_squared(_:_:)](simd/distance_squared(_:_:)-87jjy.md)
