<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioMake3DVector(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@F@AVAudioMake3DVector"
  },
  "title" : "AVAudioMake3DVector(_:_:_:)"
}
-->

# AVAudioMake3DVector(_:_:_:)

Creates a vector in 3D space, in degrees.

```
func AVAudioMake3DVector(_ x: Float, _ y: Float, _ z: Float) -> AVAudio3DVector
```

## Parameters

`x`

The x position of the vector.

`y`

The y position of the vector.

`z`

The z position of the vector.

## Return Value

A new [`AVAudio3DVector`](/documentation/AVFAudio/AVAudio3DVector) instance.

## Discussion

---

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)