---
title: projectionMatrix
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlcamera/projectionmatrix
---

# projectionMatrix

A transformation matrix that determines the extent of a scene visible to the camera.

## Declaration

```swift
var projectionMatrix: matrix_float4x4 { get }
```

## Discussion

Discussion Model I/O  automatically derives this property from the nearVisibilityDistance, farVisibilityDistance, and fieldOfView properties. A renderer uses this matrix, along with view and model matrices derived from the camera’s position and orientation (its inherited transform property) and the content to be rendered, to transform vertex data to the renderer’s 2D screen space at render time.

## See Also

### Managing Camera Perspective

- [projection](modelio/mdlcamera/projection.md)
- [MDLCameraProjection](modelio/mdlcameraprojection.md)
- [nearVisibilityDistance](modelio/mdlcamera/nearvisibilitydistance.md)
- [farVisibilityDistance](modelio/mdlcamera/farvisibilitydistance.md)
- [fieldOfView](modelio/mdlcamera/fieldofview.md)
- [ray(to:forViewPort:)](modelio/mdlcamera/ray(to:forviewport:).md)
- [worldToMetersConversionScale](modelio/mdlcamera/worldtometersconversionscale.md)
