Camera

public class Camera

Provides information about the camera that is used to capture images. The Camera is a long-lived object and the properties of Camera are updated every time Session.update() is called.

Public Methods

boolean
equals(Object obj)
Indicates whether some other object is a Camera referencing the same logical camera as this one.
Pose
getDisplayOrientedPose()
Returns the virtual camera pose in world space for rendering AR content onto the latest frame.
CameraIntrinsics
getImageIntrinsics()
Returns the unrotated camera intrinsics for the CPU image.
Pose
getPose()
Returns the pose of the physical camera in world space for the latest frame.
void
getProjectionMatrix(float[] dest, int offset, float near, float far)
Returns a projection matrix for rendering virtual content on top of the camera image.
CameraIntrinsics
getTextureIntrinsics()
Returns the unrotated camera intrinsics for the GPU texture.
TrackingFailureReason
TrackingState
getTrackingState()
Returns the current motion tracking state of this camera.
void
getViewMatrix(float[] viewMatrix, int offset)
Returns the view matrix for the camera for this frame.
int
hashCode()
Returns a hash code value for the object.

Inherited Methods

Public Methods