---
title: "length(_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/length(_:)-907xq"
---

# length(_:)

Returns the length of a vector.

## Declaration

```swift
func length(_ x: SIMD3<Double>) -> Double
```

## See Also

### Length and Distance Functions

- [length_squared(_:)](simd/length_squared(_:)-620zs.md)
- [distance(_:_:)](simd/distance(_:_:)-57zfj.md)
- [distance_squared(_:_:)](simd/distance_squared(_:_:)-4erc0.md)
