MotionInputData Class

这个类型是C#语言的 EasyAR Sense API: MotionInputData

Description

运动输入数据。

包含、时间戳、相对于世界坐标系的变换和跟踪状态。


Methods

tryCreateSixDof

C#

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

创建包含旋转和平移的6DOF变换的数据。rotation为四元数,排列顺序为wxyz。

tryCreateFiveDofRotXZ

C#

public static Optional<MotionInputData> tryCreateFiveDofRotXZ(double timestamp, Vec3F position, Vec4F rotation)

创建包含旋转和2D平移的5DOF变换的数据。rotation为四元数,排列顺序为wxyz。

tryCreateThreeDofRotOnly

C#

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

创建仅包含3自由度旋转变换的数据。rotation为四元数,排列顺序为wxyz。

timestamp

C#

public virtual double timestamp()

时间戳。单位为秒。

transformType

C#

public virtual CameraTransformType transformType()

变换类型。

transform

C#

public virtual Matrix44F transform()

相对于世界坐标系的变换。坐标系参考 概览

trackingStatus

C#

public virtual MotionTrackingStatus trackingStatus()

获取设备运动跟踪状态: MotionTrackingStatus 。仅用于6DOF。