sensor_event_get_rotation_matrix()

Retrieve a rotation matrix from a SENSOR_ROTATION_MATRIX_READING event.

Synopsis:

#include <bps/sensor.h>
 
BPS_API int sensor_event_get_rotation_matrix(bps_event_t *event, sensor_rotation_matrix_t *matrix)

Since:

BlackBerry 10.0.0

Arguments:

event

The SENSOR_ROTATION_MATRIX_READING event to get the rotation matrix from.

matrix

The sensor_rotation_matrix_t structure to fill in.

Library:

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

Description:

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.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.

Last modified: 2014-05-14



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

comments powered by Disqus