MotionInputData Class¶
Description¶
Motion input data.
It includes timestamp, transform matrix against world coordinate system, and tracking status.
tryCreateSixDof¶
Creates with 6DOF transform of both rotation and position. rotation is quaternion, ordered as wxyz.
- 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)
tryCreateFiveDofRotXZ¶
Creates with 5DOF transform of both rotation and 2D position. rotation is quaternion, ordered as wxyz.
- C
void easyar_MotionInputData_tryCreateFiveDofRotXZ(double timestamp, easyar_Vec3F position, easyar_Vec4F rotation, easyar_OptionalOfMotionInputData * Return)
- C++
static std::optional<std::shared_ptr<MotionInputData>> tryCreateFiveDofRotXZ(double timestamp, Vec3F position, Vec4F rotation)
- Java
public static @Nullable MotionInputData tryCreateFiveDofRotXZ(double timestamp, @Nonnull Vec3F position, @Nonnull Vec4F rotation)
- Kotlin
companion object fun tryCreateFiveDofRotXZ(timestamp: Double, position: Vec3F, rotation: Vec4F): MotionInputData?
- Objective-C
+ (easyar_MotionInputData *)tryCreateFiveDofRotXZ:(double)timestamp position:(easyar_Vec3F *)position rotation:(easyar_Vec4F *)rotation
- Swift
public static func tryCreateFiveDofRotXZ(_ timestamp: Double, _ position: Vec3F, _ rotation: Vec4F) -> MotionInputData?
- C#
public static Optional<MotionInputData> tryCreateFiveDofRotXZ(double timestamp, Vec3F position, Vec4F rotation)
tryCreateThreeDofRotOnly¶
Creates with 3DOF transform of rotation only. rotation is quaternion, ordered as wxyz.
- 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¶
Timestamp. In seconds.
- 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¶
Transform type.
- 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¶
Transform matrix against world coordinate system. Refer to Overview for coordinate systems.
- 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¶
Gets device motion tracking status: MotionTrackingStatus . Only for 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()