Class MotionInputData
- 命名空間
- easyar
- 組件
- EasyAR.Sense.dll
運動輸入數據。 包含、時間戳、相對於世界坐標系的變換和跟蹤狀態。
public class MotionInputData : RefBase, IDisposable
- 繼承
-
MotionInputData
- 實作
- 繼承成員
方法
Clone()
public MotionInputData Clone()
CloneObject()
protected override object CloneObject()
timestamp()
時間戳。單位為秒。
public virtual double timestamp()
trackingStatus()
獲取設備運動追蹤狀態: `MotionTrackingStatus`_ 。僅用於6DOF。
public virtual MotionTrackingStatus trackingStatus()
transform()
相對於世界坐標系的變換。
public virtual Matrix44F transform()
transformType()
變換類型。
public virtual CameraTransformType transformType()
tryCreateFiveDofRotXZ(double, Vec3F, Vec4F)
創建包含旋轉和2D平移的5DOF變換的數據。rotation為四元數,排列順序為wxyz。
public static Optional<MotionInputData> tryCreateFiveDofRotXZ(double timestamp, Vec3F position, Vec4F rotation)
參數
timestamppositionrotation
tryCreateSixDof(double, Vec3F, Vec4F, MotionTrackingStatus)
創建包含旋轉和平移的6DOF變換的數據。rotation為四元數,排列順序為wxyz。
public static Optional<MotionInputData> tryCreateSixDof(double timestamp, Vec3F position, Vec4F rotation, MotionTrackingStatus tracking_status)
參數
timestamppositionrotationtracking_status
tryCreateThreeDofRotOnly(double, Vec4F)
創建僅包含3自由度旋轉變換的數據。rotation為四元數,排列順序為wxyz。
public static Optional<MotionInputData> tryCreateThreeDofRotOnly(double timestamp, Vec4F rotation)
參數
timestamprotation