Class TargetInstance
- Namespace
- easyar
TargetInstance is the target tracked by the tracker. TargetInstance includes the original Target that is being tracked and the current state and pose of this Target
Methods
status
Returns the status of the currently tracked target. Usually, you can determine the status of the current target by checking if the status equals TargetStatus.Tracked
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
target
Get the original target. If it has been loaded into the tracker before, 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
pose
Gets the pose of the currently tracked target relative to the Camera. The camera coordinate system and the target coordinate system are both right-handed coordinate systems. The origin of the camera coordinate system is the optical center of the camera, the positive direction of the x-axis is to the right, the positive direction of the y-axis is upward, and the positive direction of the z-axis is the direction in which light enters the camera. (Here, 'right' and 'up' refer to the right and up in the camera image, which may be different from the natural orientation of the device.) The data is arranged in row-major order, which is opposite to OpenGL's column-major order
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()