sensor_rotation_matrix_t

Structure for a rotation matrix.

Synopsis:

typedef struct  {
    float matrix [3 *3];
}sensor_rotation_matrix_t;

Since:

BlackBerry 10.0.0

Data:

float matrix[3 *3]
The rotation matrix.

Since: BlackBerry 10.0.0

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The sensor_rotation_matrix_t structure defines a rotation matrix that represents the current rotation of the device. This structure is used with the sensor_event_get_rotation_matrix() function.

The rotational matrix computes the inclination matrix I as well as the rotation matrix R transforming a vector from the device coordinate system to the world's coordinate system which is defined as a direct orthonormal basis, where X is defined as the vector product Y.Z (It is tangential to the ground at the device's current location and roughly points east.)

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus