Table of Contents

Class MotionInputData

Espace de noms
easyar

Donnees d'entree de mouvement. Contient le timestamp, la transform relative au systeme de coordonnees monde et l'etat du tracking.

MotionInputData

Méthodes

tryCreateSixDof

Cree data containing a 6DOF transform with rotation and translation. rotation is a quaternion 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)

Paramètres

Nom Type Description
timestamp Double
position Vec3F
rotation Vec4F
tracking_status MotionTrackingStatus

Retours

Type Description
Optional<MotionInputData>

tryCreateFiveDofRotXZ

Cree data containing a 5DOF transform with rotation and 2D translation. rotation is a quaternion 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)

Paramètres

Nom Type Description
timestamp Double
position Vec3F
rotation Vec4F

Retours

Type Description
Optional<MotionInputData>

tryCreateThreeDofRotOnly

Cree data containing only a 3DOF rotation transform. rotation is a quaternion 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)

Paramètres

Nom Type Description
timestamp Double
rotation Vec4F

Retours

Type Description
Optional<MotionInputData>

timestamp

Timestamp. L'unite est la seconde.

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()

Retours

Type Description
Double

transformType

Type de transform.

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()

Retours

Type Description
CameraTransformType

transform

Transform relative au systeme de coordonnees monde.

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()

Retours

Type Description
Matrix44F

trackingStatus

Obtient l'etat du tracking de mouvement de l'appareil: MotionTrackingStatus. Utilise uniquement pour 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()

Retours

Type Description
MotionTrackingStatus