RenderViewpoint.State


public final class RenderViewpoint.State


Class that contains the current state of the render viewpoint.

Summary

Public methods

boolean
equals(Object other)
final @NonNull FieldOfView

the camera's FieldOfView in radians

final @NonNull Pose

a local offset from the device's central tracking point

final @NonNull Pose

the render viewpoint's pose in perception space

int
@NonNull String

Public methods

equals

public boolean equals(Object other)

getFieldOfView

Added in 1.0.0-alpha12
public final @NonNull FieldOfView getFieldOfView()

the camera's FieldOfView in radians

getLocalPose

Added in 1.0.0-alpha12
public final @NonNull Pose getLocalPose()

a local offset from the device's central tracking point

getPose

Added in 1.0.0-alpha12
public final @NonNull Pose getPose()

the render viewpoint's pose in perception space

This value is the underlying ArDevice's pose in the global coordinate system of the Session, plus the localPose offset. Its update behavior is determined by the current DeviceTrackingMode:

  • LAST_KNOWN: The device pose is updated each frame with the latest valid tracking data, reflecting physical movement.

  • DISABLED: The device pose is not updated. It remains at the origin (an identity pose) unless this mode is switched from LAST_KNOWN to DISABLED mid-session, which freezes the pose at its last known state.

hashCode

public int hashCode()

toString

public @NonNull String toString()