Class TargetInstance
- Namespace
- easyar
TargetInstance is a target tracked by a tracker. TargetInstance includes the original tracked Target and the current status and pose of this Target.
Methods
status
Returns the status of the currently tracked target. Usually you can determine the current target status by checking whether 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
| Type | Description |
|---|---|
| TargetStatus |
target
Gets the original target. If it has been loaded into a tracker, the same Target as the one loaded into the tracker will be returned.
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
| Type | Description |
|---|---|
| Target |
pose
Returns the pose of the currently tracked target relative to the Camera. Both the camera coordinate system and target coordinate system are right-handed. The origin of the Camera coordinate system is the camera optical center; the positive x-axis points right, the positive y-axis points up, and the positive z-axis points in the direction in which light enters the camera. The right and up here refer to the right and up in the camera image, which may differ from the natural orientation of the device. Data is arranged in row-major order, opposite to OpenGL 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
| Type | Description |
|---|---|
| Matrix44F |