Table of Contents

Class MotionInputData

Espace de noms
easyar

Données d'entrée de mouvement.
Contient l'horodatage, la transformation par rapport au référentiel monde et l'état de suivi.

MotionInputData

Méthodes

tryCreateSixDof

Créer des données de transformation 6DOF contenant rotation et translation. La rotation est un quaternion, arrangé dans l'ordre wxyz.

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

Créer des données pour une transformation 5DOF incluant une rotation et une translation 2D. La rotation est représentée par un quaternion, arrangé sous la forme wxyz.

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

Créer des données contenant uniquement des transformations de rotation à 3 degrés de liberté. La rotation est un quaternion, dans l'ordre wxyz.

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

Horodatage. L'unité 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 transformation

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

Transformation relative au world-système de coordonnées.

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

Obtenir l'état du suivi de mouvement de l'appareil : MotionTrackingStatus. 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