sensor_event_get_rotation_vector()

Get a rotation vector from a SENSOR_ROTATION_VECTOR_READING event.

Synopsis:

#include <bps/sensor.h>
 
BPS_API int sensor_event_get_rotation_vector(bps_event_t *event, sensor_rotation_vector_t *vector)

Arguments:

event
The SENSOR_ROTATION_VECTOR_READING event to get the rotation vector from.
vector
The sensor_rotation_vector_t structure to fill in.

Library:

libbps

Description:

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.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.