Describes a fixed location and orientation in the real world. To stay at a fixed location in physical space, the numerical description of this position will update as ARCore's understanding of the space improves.
point_world = anchor.getPose().transformPoint(point_local);
point_world = anchor.getPose().toMatrix() * point_local;
anchor.getPose().toMatrix(...) provides a matrix appropriate for composing with the
view and projection matrices when rendering an object at this anchor's location.
Anchors are hashable and may for example be used as keys in
Change from Developer Preview 1: Two
Anchor objects may refer to the same
logical anchor. Be sure to always use
equals(Object) when comparing them.
(FOR TESTING) Constructs a new instance for use as a mock.
Detaches this Anchor from its Trackable removes it from the Session.
Returns the pose of the anchor in the world coordinate space.
Returns the current state of the pose of this anchor.
Returns a hash code value for the object.
protected Anchor ()
public void detach ()
public boolean equals (Object obj)
public Pose getPose ()
public TrackingState getTrackingState ()
Returns the current state of the pose of this anchor. If this state is anything other than
TRACKING the pose should not be considered useful.