Table of Contents

Class TargetInstance

Namespace
easyar

TargetInstance is the target tracked by the tracker. TargetInstance includes the original Target that was tracked and the current status and pose of this Target.

TargetInstance

Methods

status

Returns the status of the currently tracked target. Usually, you can check if the status equals TargetStatus.Tracked to determine the current target's status.

easyar_TargetStatus easyar_TargetInstance_status(const easyar_TargetInstance * This)
TargetStatus status()
public int status()
fun status(): Int
- (easyar_TargetStatus)status
public func status() -> TargetStatus
public virtual TargetStatus status()

Returns

TargetStatus

target

Gets the original target. If it has been loaded into the tracker, it will return the same Target as the one loaded into the tracker.

void easyar_TargetInstance_target(const easyar_TargetInstance * This, easyar_Target * * Return)
std::shared_ptr<Target> target()
public @Nonnull Target target()
fun target(): Target
- (easyar_Target *)target
public func target() -> Target
public virtual Target target()

Returns

Target

pose

Returns the pose of the currently tracked target relative to the Camera. Both the camera coordinate system and the target coordinate system are right-handed coordinate systems. The origin of the camera coordinate system is the camera optical center, with the positive x-axis to the right, the positive y-axis upward, and the positive z-axis in the direction of light entering the camera. (Here, right and upward refer to the right and up in the camera image, which may differ from the device's natural orientation.) The data arrangement is row-major, opposite to OpenGL's column-major.

easyar_Matrix44F easyar_TargetInstance_pose(const easyar_TargetInstance * This)
Matrix44F pose()
public @Nonnull Matrix44F pose()
fun pose(): Matrix44F
- (easyar_Matrix44F *)pose
public func pose() -> Matrix44F
public virtual Matrix44F pose()

Returns

Matrix44F