XRCameraFrameExtensions

Extensions to AR Subsystem's XRCameraFrame struct.

Summary

Public static functions

GetImageDisplayMatrix(this XRCameraFrame frame)
Get the 4x4 image display matrix for the camera frame.

Public static functions

GetImageDisplayMatrix

Matrix4x4 GetImageDisplayMatrix(
  this XRCameraFrame frame
)

Get the 4x4 image display matrix for the camera frame.

This is used by the texture populated based on CPU images to calculate the display coordinates.

Details
Parameters
frame
The XRCameraFrame instance.
Returns
The 4x4 image display matrix.