SpatialAnnotation.State


public final class SpatialAnnotation.State implements Trackable.State


State containing physical properties that update frame-to-frame.

Summary

Public methods

boolean
equals(Object other)
final @NonNull SpatialAnnotation

the SpatialAnnotation that owns this state

final @NonNull Pose

the Pose of the 2D plane origin where the annotation quad is rooted.

final Quad

the physical spatial geometry (in meters) residing on the local XY plane relative to the pose, this will only have a value when the spatial tracking mode is set to quad

@NonNull TrackingState

the TrackingState of the SpatialAnnotation

int
@NonNull String

Public methods

equals

public boolean equals(Object other)

getOwner

Added in 1.1.0-alpha01
public final @NonNull SpatialAnnotation getOwner()

the SpatialAnnotation that owns this state

getPose

Added in 1.1.0-alpha01
public final @NonNull Pose getPose()

the Pose of the 2D plane origin where the annotation quad is rooted. The local +Z axis relative to the pose is equivalent to the surface normal, with the quad residing on the local XY plane

getQuad

Added in 1.1.0-alpha01
public final Quad getQuad()

the physical spatial geometry (in meters) residing on the local XY plane relative to the pose, this will only have a value when the spatial tracking mode is set to quad

getTrackingState

public @NonNull TrackingState getTrackingState()

the TrackingState of the SpatialAnnotation

hashCode

public int hashCode()

toString

public @NonNull String toString()