Table of Contents

Class MotionInputData

Namespace
easyar

Motion input data. Contains timestamp, transformation relative to the world coordinate system, and tracking status.

MotionInputData

Methods

tryCreateSixDof

Creates data containing a 6DOF transformation with rotation and translation. Rotation is a quaternion, arranged in wxyz order.

void easyar_MotionInputData_tryCreateSixDof(double timestamp, easyar_Vec3F position, easyar_Vec4F rotation, easyar_MotionTrackingStatus tracking_status, easyar_OptionalOfMotionInputData * Return)
static std::optional<std::shared_ptr<MotionInputData>> tryCreateSixDof(double timestamp, Vec3F position, Vec4F rotation, MotionTrackingStatus tracking_status)
public static @Nullable MotionInputData tryCreateSixDof(double timestamp, @Nonnull Vec3F position, @Nonnull Vec4F rotation, int tracking_status)
companion object fun tryCreateSixDof(timestamp: Double, position: Vec3F, rotation: Vec4F, tracking_status: Int): MotionInputData?
+ (easyar_MotionInputData *)tryCreateSixDof:(double)timestamp position:(easyar_Vec3F *)position rotation:(easyar_Vec4F *)rotation tracking_status:(easyar_MotionTrackingStatus)tracking_status
public static func tryCreateSixDof(_ timestamp: Double, _ position: Vec3F, _ rotation: Vec4F, _ tracking_status: MotionTrackingStatus) -> MotionInputData?
public static Optional<MotionInputData> tryCreateSixDof(double timestamp, Vec3F position, Vec4F rotation, MotionTrackingStatus tracking_status)

Parameters

timestamp Double
position Vec3F
rotation Vec4F
tracking_status MotionTrackingStatus

Returns

Optional<MotionInputData>

tryCreateFiveDofRotXZ

Creates data containing a 5DOF transformation with rotation and 2D translation. Rotation is a quaternion, arranged in wxyz order.

void easyar_MotionInputData_tryCreateFiveDofRotXZ(double timestamp, easyar_Vec3F position, easyar_Vec4F rotation, easyar_OptionalOfMotionInputData * Return)
static std::optional<std::shared_ptr<MotionInputData>> tryCreateFiveDofRotXZ(double timestamp, Vec3F position, Vec4F rotation)
public static @Nullable MotionInputData tryCreateFiveDofRotXZ(double timestamp, @Nonnull Vec3F position, @Nonnull Vec4F rotation)
companion object fun tryCreateFiveDofRotXZ(timestamp: Double, position: Vec3F, rotation: Vec4F): MotionInputData?
+ (easyar_MotionInputData *)tryCreateFiveDofRotXZ:(double)timestamp position:(easyar_Vec3F *)position rotation:(easyar_Vec4F *)rotation
public static func tryCreateFiveDofRotXZ(_ timestamp: Double, _ position: Vec3F, _ rotation: Vec4F) -> MotionInputData?
public static Optional<MotionInputData> tryCreateFiveDofRotXZ(double timestamp, Vec3F position, Vec4F rotation)

Parameters

timestamp Double
position Vec3F
rotation Vec4F

Returns

Optional<MotionInputData>

tryCreateThreeDofRotOnly

Creates data containing only a 3DOF rotation transformation. Rotation is a quaternion, arranged in wxyz order.

void easyar_MotionInputData_tryCreateThreeDofRotOnly(double timestamp, easyar_Vec4F rotation, easyar_OptionalOfMotionInputData * Return)
static std::optional<std::shared_ptr<MotionInputData>> tryCreateThreeDofRotOnly(double timestamp, Vec4F rotation)
public static @Nullable MotionInputData tryCreateThreeDofRotOnly(double timestamp, @Nonnull Vec4F rotation)
companion object fun tryCreateThreeDofRotOnly(timestamp: Double, rotation: Vec4F): MotionInputData?
+ (easyar_MotionInputData *)tryCreateThreeDofRotOnly:(double)timestamp rotation:(easyar_Vec4F *)rotation
public static func tryCreateThreeDofRotOnly(_ timestamp: Double, _ rotation: Vec4F) -> MotionInputData?
public static Optional<MotionInputData> tryCreateThreeDofRotOnly(double timestamp, Vec4F rotation)

Parameters

timestamp Double
rotation Vec4F

Returns

Optional<MotionInputData>

timestamp

Timestamp. Unit is seconds.

double easyar_MotionInputData_timestamp(const easyar_MotionInputData * This)
double timestamp()
public double timestamp()
fun timestamp(): Double
- (double)timestamp
public func timestamp() -> Double
public virtual double timestamp()

Returns

Double

transformType

Transformation type.

easyar_CameraTransformType easyar_MotionInputData_transformType(const easyar_MotionInputData * This)
CameraTransformType transformType()
public int transformType()
fun transformType(): Int
- (easyar_CameraTransformType)transformType
public func transformType() -> CameraTransformType
public virtual CameraTransformType transformType()

Returns

CameraTransformType

transform

Transformation relative to the world coordinate system.

easyar_Matrix44F easyar_MotionInputData_transform(const easyar_MotionInputData * This)
Matrix44F transform()
public @Nonnull Matrix44F transform()
fun transform(): Matrix44F
- (easyar_Matrix44F *)transform
public func transform() -> Matrix44F
public virtual Matrix44F transform()

Returns

Matrix44F

trackingStatus

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

easyar_MotionTrackingStatus easyar_MotionInputData_trackingStatus(const easyar_MotionInputData * This)
MotionTrackingStatus trackingStatus()
public int trackingStatus()
fun trackingStatus(): Int
- (easyar_MotionTrackingStatus)trackingStatus
public func trackingStatus() -> MotionTrackingStatus
public virtual MotionTrackingStatus trackingStatus()

Returns

MotionTrackingStatus