Flutter Engine
The Flutter Engine
|
Typedefs | |
typedef struct ArPoint_ | ArPoint |
Functions | |
AR_DEFINE_ENUM (ArPointOrientationMode) | |
void | ArPoint_getPose (const ArSession *session, const ArPoint *point, ArPose *out_pose) |
void | ArPoint_getOrientationMode (const ArSession *session, const ArPoint *point, ArPointOrientationMode *out_orientation_mode) |
Represents a point in space that ARCore is tracking.
typedef struct ArPoint_ ArPoint |
An arbitrary point in space (reference type, long-lived).
Trackable type: #AR_TRACKABLE_POINT
Release with: ArTrackable_release()
Definition at line 297 of file arcore_c_api.h.
AR_DEFINE_ENUM | ( | ArPointOrientationMode | ) |
Indicates the orientation mode of the ArPoint.
The orientation of the ArPoint is initialized to identity but may adjust slightly over time.
The orientation of the ArPoint will follow the behavior described in ArHitResult_getHitPose().
Definition at line 761 of file arcore_c_api.h.
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.
[in] | session | The ARCore session. |
[in] | point | The point to retrieve the pose of. |
[in,out] | out_orientation_mode | OrientationMode output result for the the point. |
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.
[in] | session | The ARCore session. |
[in] | point | The point to retrieve the pose of. |
[in,out] | out_pose | An already-allocated ArPose object into which the pose will be stored. |