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) BPS_DEPRECATED

Since:

BlackBerry 10.0.0

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 (For the qcc command, use the -l bps option to link against this library)

Description:

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.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.

See also:

sensor_event_get_rotation_matrix

Last modified: 2014-09-30



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

comments powered by Disqus