Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Utilities

CameraMath

A collection of functions used to calculate transformations for AR imaging.

Declaration​

public static class CameraMath

Methods​

NameTypeSummary
static CalculateDisplayMatrixMatrix4x4
Returns an affine transformation matrix for converting between normalized image
coordinates and a coordinate space appropriate for rendering the camera image onscreen.
static CalculateProjectionMatrixMatrix4x4
Returns a transform matrix appropriate for rendering 3D content to match the image
captured by the camera, using the specified parameters.
static CalculateZBufferParamsVector4
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 CameraToDisplayRotationQuaternion
-
static DisplayToCameraRotationQuaternion
-