116     assert(numAvg > 0 && 
"Num. of averaged values must be greater than zero");
 
  128         default: 
return "Unknown";
 
Mobile device rotation class declaration.
 
SLMat3< SLfloat > SLMat3f
 
SLQuat4< SLfloat > SLQuat4f
 
SLMat3f _rotation
Mobile device rotation as matrix.
 
SLfloat _rollRAD
Device roll angle in radians.
 
SLbool _isFirstSensorValue
Flag for the first sensor values.
 
SLfloat _startYawRAD
Initial yaw angle after _zeroYawAfterSec in radians.
 
SLfloat _yawRAD
Device yaw angle in radians.
 
SLbool _updateRPY
Calculate roll pitch yaw in onRotationQUAT.
 
SLbool _zeroYawAtStart
Quaternion rotation that is set by IMU.
 
SLfloat _pitchRAD
Device pitch angle in radians.
 
SLRotOffsetMode _offsetMode
Rotation offset mode.
 
Averaged< SLMat3f > _rotationAvg
Component wise averaged rotation matrix.
 
SLbool _isUsed
Flag if device rotation is used.
 
void onRotationQUAT(SLfloat quatX, SLfloat quatY, SLfloat quatZ, SLfloat quatW)
 
SLstring offsetModeStr() const
Returns the rotation offset mode as string.
 
SLMat3< T > toMat3() const
 
void toEulerAnglesXYZ(T &xRotRAD, T &yRotRAD, T &zRotRAD) const