<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/length_squared(_:)-620zs",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "s:4simd14length_squaredySds5SIMD3VySdGF"
  },
  "title" : "length_squared(_:)"
}
-->

# length_squared(_:)

Returns the square of the length of a vector.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)