![]() |
Home · All Classes · All Functions · | ![]() |
The QRotationReading class represents one reading from the rotation sensor. More...
#include <QRotationReading>
This class is under development and is subject to change.
Inherits QSensorReading.
void | setX ( qreal x ) |
void | setY ( qreal y ) |
void | setZ ( qreal z ) |
qreal | x () const |
qreal | y () const |
qreal | z () const |
The QRotationReading class represents one reading from the rotation sensor.
The rotation sensor returns the rotation of the device along the X, Y and Z axes. The scale of the values is radians. The axes are arranged as follows.
+z | | +y | / |----/---- /| NOKIA /| //|--/--- / | // | / // / // |/ // / // '--------------- +x // // / // // / /---------/ / / O / / / / / ---------- / |_________!/
Note that the values for the rotation sensor come from an accelerometer so a device resting on its back will not be able to detect rotation around the Z axis. Rotation can only be detected when it happens relative to gravity.
This property holds the rotation on the X axis.
Access functions:
qreal | x () const |
This property holds the rotation on the Y axis.
Access functions:
qreal | y () const |
This property holds the rotation on the Z axis.
Access functions:
qreal | z () const |
Sets the rotation on the X axis to x.
See also x().
Sets the rotation on the Y axis to y.
See also y().
Sets the rotation on the Z axis to z.
See also z().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 |