Table of Contents

Class MotionInputData

네임스페이스
easyar

운동 입력 데이터. 타임스탬프, 세계 좌표계에 대한 변환 및 추적 상태를 포함합니다.

MotionInputData

메서드

tryCreateSixDof

회전 및 이동을 포함하는 6DOF 변환 데이터를 생성합니다. rotation은 쿼터니언이며 배열 순서는 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)

매개 변수

이름 형식 설명
timestamp Double
position Vec3F
rotation Vec4F
tracking_status MotionTrackingStatus

반환 값

형식 설명
Optional<MotionInputData>

tryCreateFiveDofRotXZ

5자유도 회전 및 2D 병진 변환을 포함하는 데이터를 생성합니다. 회전은 쿼터니언(quaternion)으로, 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)

매개 변수

이름 형식 설명
timestamp Double
position Vec3F
rotation Vec4F

반환 값

형식 설명
Optional<MotionInputData>

tryCreateThreeDofRotOnly

3-자유도 회전 변환만 포함하는 데이터를 생성합니다. rotation은 쿼터니언이며, 순서는 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)

매개 변수

이름 형식 설명
timestamp Double
rotation Vec4F

반환 값

형식 설명
Optional<MotionInputData>

timestamp

타임스탬프. 단위는 초.

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

반환 값

형식 설명
Double

transformType

변환 유형

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

반환 값

형식 설명
CameraTransformType

transform

월드 좌표계에 대한 변환.

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

반환 값

형식 설명
Matrix44F

trackingStatus

장치 모션 추적 상태 가져오기: MotionTrackingStatus. 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()

반환 값

형식 설명
MotionTrackingStatus