MotionInputData Class

This type is an EasyAR Sense API in C#: MotionInputData . Some descriptions may not apply to Unity environment on this page.

Some parts of the Sense API may have already been wrapped into Unity components, and directly usages may not be necessary.

Description

Motion input data.

It includes timestamp, transform matrix against world coordinate system, and tracking status.


Methods

tryCreateSixDof

C#

public static Optional<MotionInputData> tryCreateSixDof(double timestamp, Vec3F position, Vec4F rotation, MotionTrackingStatus tracking_status)

Creates with 6DOF transform of both rotation and position.

tryCreateThreeDofRotOnly

C#

public static Optional<MotionInputData> tryCreateThreeDofRotOnly(double timestamp, Vec4F rotation)

Creates with 3DOF transform of rotation only.

timestamp

C#

public virtual double timestamp()

Timestamp. In seconds.

transformType

C#

public virtual CameraTransformType transformType()

Transform type.

transform

C#

public virtual Matrix44F transform()

Transform matrix against world coordinate system. Refer to Overview for coordinate systems.

trackingStatus

C#

public virtual MotionTrackingStatus trackingStatus()

Gets device motion tracking status: MotionTrackingStatus . Only for 6DOF.