CameraMath
A collection of functions used to calculate transformations for AR imaging.
Declaration
public static class CameraMathMethods
| Name | Type | Summary |
|---|---|---|
| static CalculateDisplayMatrix | Matrix4x4 | |
| static CalculateProjectionMatrix | Matrix4x4 | Returns a transform matrix appropriate for rendering 3D content to match the image captured by the camera, using the specified parameters. |
| static CalculateZBufferParams | Vector4 | Calculates a ZBufferParams container, similar to the built-in _ZBufferParams used in shaders, but instead of using the clipping plane distances of the camera, it will consider the specified near and far values. |
| static CameraToDisplayRotation | Quaternion | - |
| static DisplayToCameraRotation | Quaternion | - |
coordinates and a coordinate space appropriate for rendering the camera image onscreen.