<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderer/Camera/Projection-swift.struct/perspective(leftTangent:rightTangent:topTangent:bottomTangent:nearZ:farZ:reverseZ:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer08LowLevelC0C6CameraV10ProjectionV11perspective11leftTangent05rightJ003topJ006bottomJ05nearZ4farZ8reverseZAGSf_S5fSbtFZ"
  },
  "title" : "perspective(leftTangent:rightTangent:topTangent:bottomTangent:nearZ:farZ:reverseZ:)"
}
-->

# perspective(leftTangent:rightTangent:topTangent:bottomTangent:nearZ:farZ:reverseZ:)

Creates an off-axis perspective projection from explicit frustum tangents.

```
static func perspective(leftTangent: Float, rightTangent: Float, topTangent: Float, bottomTangent: Float, nearZ: Float, farZ: Float, reverseZ: Bool = true) -> LowLevelRenderer.Camera.Projection
```

## Parameters

`leftTangent`

The tangent of the left frustum half-angle.

`rightTangent`

The tangent of the right frustum half-angle.

`topTangent`

The tangent of the top frustum half-angle.

`bottomTangent`

The tangent of the bottom frustum half-angle.

`nearZ`

The distance to the near clipping plane.

`farZ`

The distance to the far clipping plane.

`reverseZ`

If `true`, the depth range is reversed (1 at near, 0 at far). Defaults to `true`.

## Return Value

An off-axis perspective [`LowLevelRenderer.Camera.Projection`](/documentation/RealityKit/LowLevelRenderer/Camera/Projection-swift.struct).

---

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)