---
title: length
framework: vision
role: symbol
role_heading: Instance Property
path: vision/vnvector/length
---

# length

The length, or absolute value, of the vector.

## Declaration

```swift
var length: Double { get }
```

## See Also

### Inspecting a Vector

- [r](vision/vnvector/r.md)
- [theta](vision/vnvector/theta.md)
- [squaredLength](vision/vnvector/squaredlength.md)
- [x](vision/vnvector/x.md)
- [y](vision/vnvector/y.md)
- [dotProduct(of:vector:)](vision/vnvector/dotproduct(of:vector:).md)
- [unitVector(for:)](vision/vnvector/unitvector(for:).md)
