<!--
{
  "availability" : [
    "FxPlug: 4.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/Fx3DAPI_v5",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)Fx3DAPI_v5"
  },
  "title" : "Fx3DAPI_v5"
}
-->

# Fx3DAPI_v5

An API that defines the methods the host application provides to get information about the 3D environment, including camera and object transforms.

```
protocol Fx3DAPI_v5
```

## Topics

### Accessing the 3D Environment

[`func focalLength(at: CMTime, error: NSErrorPointer) -> Double`](/documentation/professional_video_applications/Fx3DAPI_v5/focalLength(at:error:))

Gets the focal length.

[`func layerMatrix(at: CMTime) throws -> FxMatrix44`](/documentation/professional_video_applications/Fx3DAPI_v5/layerMatrix(at:))

Gets the 4x4 layer matrix, which is equivalent to the model matrix for the object that the effect is applied to.

[`func viewMatrix(at: CMTime) throws -> FxMatrix44`](/documentation/professional_video_applications/Fx3DAPI_v5/viewMatrix(at:))

Gets the 4x4 view matrix.

[`func metalProjectionMatrix(at: CMTime) throws -> FxMatrix44`](/documentation/professional_video_applications/Fx3DAPI_v5/metalProjectionMatrix(at:))

Gets the 4x4 Metal projection matrix.

[`func frustumLeft(UnsafeMutablePointer<Double>!, right: UnsafeMutablePointer<Double>!, bottom: UnsafeMutablePointer<Double>!, top: UnsafeMutablePointer<Double>!, near: UnsafeMutablePointer<Double>!, far: UnsafeMutablePointer<Double>!, at: CMTime) throws`](/documentation/professional_video_applications/Fx3DAPI_v5/frustumLeft(_:right:bottom:top:near:far:at:))

Describes the bounds of the viewing solid for generating a projection matrix.



---

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)