---
title: lengthSquared
framework: spatial
role: symbol
role_heading: Instance Property
path: spatial/vector3d/lengthsquared
---

# lengthSquared

The square of the length of the vector.

## Declaration

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

## See Also

### Geometry functions

- [cross(_:)](spatial/vector3d/cross(_:).md)
- [dot(_:)](spatial/vector3d/dot(_:).md)
- [length](spatial/vector3d/length.md)
- [normalize()](spatial/vector3d/normalize().md)
- [normalized](spatial/vector3d/normalized.md)
- [projected(_:)](spatial/vector3d/projected(_:).md)
- [reflected(_:)](spatial/vector3d/reflected(_:).md)
