Class AttitudeSensorResult
- Namespace
- easyar
Attitude sensor reading. The positive x-axis points from the device center to the right side of the screen. The positive y-axis points from the device center to the top of the screen. The positive z-axis points outward from the device center perpendicular to the screen. The device rotates by an angle θ around the axis (x, y, z). The unit rotation quaternion is (cos(θ/2), x*sin(θ/2), y*sin(θ/2), z*sin(θ/2)). (v0, v1, v2, v3) = (cos(θ/2), x*sin(θ/2), y*sin(θ/2), z*sin(θ/2)). The reference coordinate system is defined as a set of oriented standard orthonormal bases, where
Z points to the sky and is parallel to the ground.
(X, Y, Z) forms a right-handed system.
timestamp is in seconds.
Record AttitudeSensorResult
AttitudeSensorResult
Properties
v0
float v0
float v0
public float v0
public Float v0
@property (nonatomic) float v0
public var v0: Float
public float v0
v1
float v1
float v1
public float v1
public Float v1
@property (nonatomic) float v1
public var v1: Float
public float v1
v2
float v2
float v2
public float v2
public Float v2
@property (nonatomic) float v2
public var v2: Float
public float v2
v3
float v3
float v3
public float v3
public Float v3
@property (nonatomic) float v3
public var v3: Float
public float v3