Retrieve a rotation matrix from a SENSOR_ROTATION_MATRIX_READING event.
#include <bps/sensor.h>
BPS_API int sensor_event_get_rotation_matrix(bps_event_t *event,
sensor_rotation_matrix_t *matrix)
BlackBerry 10.0.0
The SENSOR_ROTATION_MATRIX_READING event to get the rotation matrix from.
The sensor_rotation_matrix_t structure to fill in.
The sensor_event_get_rotation_matrix() function fills in a sensor_rotation_matrix_t structure with a rotation matrix that is created using the values from the specified SENSOR_ROTATION_MATRIX_READING event.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.