Returns a transform matrix appropriate for rendering 3D content to match the image captured by the camera, using the specified parameters.
- iOS 11.0+
The orientation in which the camera image is to be presented.
The size, in points, of the view in which the camera image is to be presented.
The distance from the camera to the near clipping plane.
The distance from the camera to the far clipping plane.
A projection matrix that provides an aspect fill and rotation for the provided viewport size and orientation.
This method has no effect on ARKit, and the
z parameters have no relationships to ARKit camera state. Instead, this method uses those parameters as well as the camera's state to construct a projection matrix for use in your own rendering code.