<!--
{
  "availability" : [

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

# normalize(_:)

Returns a vector pointing in the same direction of the supplied vector with a length of 1.

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

## Parameters

`x`

The vector to normalize.

## Return Value

The normalized vector.

## Discussion

This function returns an undefined value if the supplied vector has zero length or is poorly scaled such that an intermediate computation overflows or underflows.

---

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)