public class
Point
Represents a point in space that ARCore is tracking. These objects are created as a side-effect
of Session.createAnchor(Pose)
or when Frame.hitTest(float, float)
returns results
against a point cloud.
Note: Two Point
objects may refer to the same logical point managed by ARCore. Be sure
to always use equals(Object)
when comparing them.
Nested Classes
enum
|
Point.OrientationMode |
Indicates the point orientation mode. |
Public Methods
Anchor
|
createAnchor(Pose pose)
Creates an anchor that is attached to this trackable, using the given initial pose in the world
coordinate space.
|
boolean
|
|
Collection<Anchor>
|
getAnchors()
Gets the Anchors attached to this trackable.
|
Point.OrientationMode
|
getOrientationMode()
Returns the OrientationMode
Point.OrientationMode of the point. |
Pose
|
getPose()
Returns the pose of the point for
Point s created by Frame.hitTest(float, float) . |
TrackingState
|
getTrackingState()
Gets this trackable's
TrackingState . |
int
|
hashCode()
Returns a hash code value for the object.
|
Inherited Methods
Public Methods
public Anchor createAnchor (Pose pose)
createAnchor
public Anchor createAnchor( Pose pose )
Creates an anchor that is attached to this trackable, using the given initial pose in the world coordinate space. The type of trackable will determine the semantics of attachment and how the anchor's pose will be updated to maintain this relationship. Note that the relative offset between the pose of multiple anchors attached to a trackable may adjust slightly over time as ARCore updates its model of the world.
Details | |||
---|---|---|---|
Parameters |
|
public boolean equals (Object obj)
equals
public boolean equals( Object obj )
Indicates whether some other object is a Trackable
referencing the same logical
trackable as this one.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns | true if this object is the same as the obj argument; false otherwise. |
||
See Also |
public Collection<Anchor> getAnchors ()
getAnchors
public Collection<Anchor> getAnchors()
Gets the Anchors attached to this trackable.
public Point.OrientationMode getOrientationMode ()
getOrientationMode
public Point.OrientationMode getOrientationMode()
Returns the OrientationMode Point.OrientationMode
of the point.
Details | |
---|---|
Returns | Point.OrientationMode
|
public Pose getPose ()
getPose
public Pose getPose()
Returns the pose of the point for Point
s created by Frame.hitTest(float, float)
.
- If
Point.OrientationMode
isPoint.OrientationMode.ESTIMATED_SURFACE_NORMAL
, then the orientation is such that X+ is perpendicular to the cast ray and parallel to the physical surface centered around the hit test, Y+ points along the estimated surface normal, and Z+ points roughly toward the user's device. - If
Point.OrientationMode
isPoint.OrientationMode.ESTIMATED_SURFACE_NORMAL
, then the orientation is identity or close to identity.
public TrackingState getTrackingState ()
getTrackingState
public TrackingState getTrackingState()
Gets this trackable's TrackingState
.
public int hashCode ()
hashCode
public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hash
tables such as those provided by HashMap
.
Details | |
---|---|
Returns | a hash code value for this object. |
See Also |