<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudio3DVectorOrientation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@S@AVAudio3DVectorOrientation"
  },
  "title" : "AVAudio3DVectorOrientation"
}
-->

# AVAudio3DVectorOrientation

A structure that represents two orthogonal vectors that describe the orientation of the listener in 3D space.

```
struct AVAudio3DVectorOrientation
```

## Overview

Two orthogonal vectors describe the orientation of the listener. The forward vector points in the direction the listener faces. The up vector is orthogonal to the forward vector and points upward from the listener’s head.

## Topics

### Creating a Vector Orientation

[`init()`](/documentation/AVFAudio/AVAudio3DVectorOrientation/init())

Creates a 3D vector orientation instance.

[`init(forward:up:)`](/documentation/AVFAudio/AVAudio3DVectorOrientation/init(forward:up:))

Creates a 3D vector orientation instance using the forward and up vectors you specify.

[`AVAudioMake3DVectorOrientation(_:_:)`](/documentation/AVFAudio/AVAudioMake3DVectorOrientation(_:_:))

Creates a 3D vector orientation instance using the forward and up vectors you specify.

### Getting Vector Orientation Properties

[`forward`](/documentation/AVFAudio/AVAudio3DVectorOrientation/forward)

The forward vector points in the direction that the listener faces.

[`up`](/documentation/AVFAudio/AVAudio3DVectorOrientation/up)

The up vector is orthogonal to the forward vector and points upward from the listener’s head.



---

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)