Get a rotation vector from a SENSOR_ROTATION_VECTOR_READING event.
#include <bps/sensor.h>
BPS_API int sensor_event_get_rotation_vector(bps_event_t *event,
sensor_rotation_vector_t *vector) BPS_DEPRECATED
BlackBerry 10.0.0
The SENSOR_ROTATION_VECTOR_READING event to get the rotation vector from.
The sensor_rotation_vector_t structure to fill in.
Deprecated:
This function is deprecated, use rotation matrix instead.
The sensor_event_get_rotation_vector() function fills in a sensor_rotation_vector_t structure with a rotation vector that is created using the values from the specified SENSOR_ROTATION_VECTOR_READING event.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.