<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/simd_quatf/init(angle:axis:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "s:So10simd_quatfa0A0E5angle4axisABSf_s5SIMD3VySfGtcfc"
  },
  "title" : "init(angle:axis:)"
}
-->

# init(angle:axis:)

Creates a new quaternion with an action that’s a rotation about an axis.

```
init(angle: Float, axis: SIMD3<Float>)
```

## Parameters

`angle`

The rotation angle in radians.

`axis`

A three-element vector that specifies the rotation axis.

---

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)