MotionInputData Class

Description

运动输入数据。

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

tryCreateSixDof

创建包含旋转和平移的6DOF变换的数据。

C

void easyar_MotionInputData_tryCreateSixDof(double timestamp, easyar_Vec3F position, easyar_Vec4F rotation, easyar_MotionTrackingStatus tracking_status, easyar_OptionalOfMotionInputData * Return)

C++

static std::optional<std::shared_ptr<MotionInputData>> tryCreateSixDof(double timestamp, Vec3F position, Vec4F rotation, MotionTrackingStatus tracking_status)

Java

public static @Nullable MotionInputData tryCreateSixDof(double timestamp, @Nonnull Vec3F position, @Nonnull Vec4F rotation, int tracking_status)

Kotlin

companion object fun tryCreateSixDof(timestamp: Double, position: Vec3F, rotation: Vec4F, tracking_status: Int): MotionInputData?

Objective-C

+ (easyar_MotionInputData *)tryCreateSixDof:(double)timestamp position:(easyar_Vec3F *)position rotation:(easyar_Vec4F *)rotation tracking_status:(easyar_MotionTrackingStatus)tracking_status

Swift

public static func tryCreateSixDof(_ timestamp: Double, _ position: Vec3F, _ rotation: Vec4F, _ tracking_status: MotionTrackingStatus) -> MotionInputData?

C#

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

tryCreateThreeDofRotOnly

创建仅包含3自由度旋转变换的数据。

C

void easyar_MotionInputData_tryCreateThreeDofRotOnly(double timestamp, easyar_Vec4F rotation, easyar_OptionalOfMotionInputData * Return)

C++

static std::optional<std::shared_ptr<MotionInputData>> tryCreateThreeDofRotOnly(double timestamp, Vec4F rotation)

Java

public static @Nullable MotionInputData tryCreateThreeDofRotOnly(double timestamp, @Nonnull Vec4F rotation)

Kotlin

companion object fun tryCreateThreeDofRotOnly(timestamp: Double, rotation: Vec4F): MotionInputData?

Objective-C

+ (easyar_MotionInputData *)tryCreateThreeDofRotOnly:(double)timestamp rotation:(easyar_Vec4F *)rotation

Swift

public static func tryCreateThreeDofRotOnly(_ timestamp: Double, _ rotation: Vec4F) -> MotionInputData?

C#

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

timestamp

时间戳。单位为秒。

C

double easyar_MotionInputData_timestamp(const easyar_MotionInputData * This)

C++

double timestamp()

Java

public double timestamp()

Kotlin

fun timestamp(): Double

Objective-C

- (double)timestamp

Swift

public func timestamp() -> Double

C#

public virtual double timestamp()

transformType

变换类型。

C

easyar_CameraTransformType easyar_MotionInputData_transformType(const easyar_MotionInputData * This)

C++

CameraTransformType transformType()

Java

public int transformType()

Kotlin

fun transformType(): Int

Objective-C

- (easyar_CameraTransformType)transformType

Swift

public func transformType() -> CameraTransformType

C#

public virtual CameraTransformType transformType()

transform

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

C

easyar_Matrix44F easyar_MotionInputData_transform(const easyar_MotionInputData * This)

C++

Matrix44F transform()

Java

public @Nonnull Matrix44F transform()

Kotlin

fun transform(): Matrix44F

Objective-C

- (easyar_Matrix44F *)transform

Swift

public func transform() -> Matrix44F

C#

public virtual Matrix44F transform()

trackingStatus

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

C

easyar_MotionTrackingStatus easyar_MotionInputData_trackingStatus(const easyar_MotionInputData * This)

C++

MotionTrackingStatus trackingStatus()

Java

public int trackingStatus()

Kotlin

fun trackingStatus(): Int

Objective-C

- (easyar_MotionTrackingStatus)trackingStatus

Swift

public func trackingStatus() -> MotionTrackingStatus

C#

public virtual MotionTrackingStatus trackingStatus()