# CalculateProjectionMatrix Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.Utilities.CameraMath.CalculateProjectionMatrix/ CalculateProjectionMatrix --- ## Declaration public static Matrix4x4 CalculateProjectionMatrix(XRCameraIntrinsics intrinsics, XRCameraParams cameraParams, bool useOpenGLConvention = true) #### Summary Returns a transform matrix appropriate for rendering 3D content to match the image captured by the camera, using the specified parameters. #### Returns The projection matrix. ### Parameters | Name | Type | Summary | | --- | --- | --- | | intrinsics | XRCameraIntrinsics | The intrinsics of the physical camera. | | cameraParams | XRCameraParams | Presentation params of the virtual camera. | | useOpenGLConvention | bool | Whether to construct an OpenGL-like projection matrix. | ---