Point

Represents a point in space that ARCore is tracking.

Summary

Enumerations

ArPointOrientationMode{
  AR_POINT_ORIENTATION_INITIALIZED_TO_IDENTITY = 0,
  AR_POINT_ORIENTATION_ESTIMATED_SURFACE_NORMAL = 1
}
enum
Indicates the orientation mode of the ArPoint.

Typedefs

ArPoint typedef
struct ArPoint_
An arbitrary point in space (reference type, long-lived).

Functions

ArPoint_getOrientationMode(const ArSession *session, const ArPoint *point, ArPointOrientationMode *out_orientation_mode)
void
Returns the OrientationMode of the point.
ArPoint_getPose(const ArSession *session, const ArPoint *point, ArPose *out_pose)
void
Returns the pose of the point.

Enumerations

ArPointOrientationMode

 ArPointOrientationMode

Indicates the orientation mode of the ArPoint.

Properties
AR_POINT_ORIENTATION_ESTIMATED_SURFACE_NORMAL

The orientation of the ArPoint will follow the behavior described in ArHitResult_getHitPose().

AR_POINT_ORIENTATION_INITIALIZED_TO_IDENTITY

The orientation of the ArPoint is initialized to identity but may adjust slightly over time.

Typedefs

ArPoint

struct ArPoint_ ArPoint

An arbitrary point in space (reference type, long-lived).

Trackable type: AR_TRACKABLE_POINT
Release with: ArTrackable_release()

Functions

ArPoint_getOrientationMode

void ArPoint_getOrientationMode(
  const ArSession *session,
  const ArPoint *point,
  ArPointOrientationMode *out_orientation_mode
)

Returns the OrientationMode of the point.

For Point objects created by ArFrame_hitTest(). If OrientationMode is ESTIMATED_SURFACE_NORMAL, then normal of the surface centered around the ArPoint was estimated succesfully.

Details
Parameters
session
The ARCore session.
point
The point to retrieve the pose of.
out_orientation_mode
OrientationMode output result for the the point.

ArPoint_getPose

void ArPoint_getPose(
  const ArSession *session,
  const ArPoint *point,
  ArPose *out_pose
)

Returns the pose of the point.

If ArPoint_getOrientationMode() returns ESTIMATED_SURFACE_NORMAL, the orientation will follow the behavior described in ArHitResult_getHitPose(). If ArPoint_getOrientationMode() returns INITIALIZED_TO_IDENTITY, then returns an orientation that is identity or close to identity.

Details
Parameters
session
The ARCore session.
point
The point to retrieve the pose of.
out_pose
An already-allocated ArPose object into which the pose will be stored.

Send feedback about...