---
title: "init(fovyRadians:aspectRatio:nearZ:farZ:reverseZ:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/projectivetransform3d/init(fovyradians:aspectratio:nearz:farz:reversez:)"
---

# init(fovyRadians:aspectRatio:nearZ:farZ:reverseZ:)

Returns a projective transform with right-hand-side perspective and optional reverse-z.

## Declaration

```swift
init(fovyRadians: Double, aspectRatio: Double, nearZ: Double, farZ: Double, reverseZ: Bool)
```

## Parameters

- `fovyRadians`: The field-of-view angle along the y-axis.
- `aspectRatio`: The aspect ratio.
- `nearZ`: The distance to the near clipping plane.
- `farZ`: The distance to the far clipping plane.
- `reverseZ`: A Boolean value that specifies whether the matrix uses reverse z.

## See Also

### Deprecated symbols

- [offset](spatial/projectivetransform3d/offset.md)
- [scale](spatial/projectivetransform3d/scale.md)
- [inverted()](spatial/projectivetransform3d/inverted().md)
- [init(matrix:)](spatial/projectivetransform3d/init(matrix:)-zfb.md)
- [init(scale:rotation:translation:)](spatial/projectivetransform3d/init(scale:rotation:translation:)-8qxxq.md)
- [init(translation:)](spatial/projectivetransform3d/init(translation:).md)
- [init(fovyRadians:aspectRatio:nearZ:farZ:)](spatial/projectivetransform3d/init(fovyradians:aspectratio:nearz:farz:).md)
