Searched defs:rad2deg (Results 1 - 1 of 1) sorted by relevance

/frameworks/native/services/sensorservice/
H A DOrientationSensor.cpp47 const float rad2deg = 180 / M_PI; local
49 g[0] = atan2f(-R[1][0], R[0][0]) * rad2deg;
50 g[1] = atan2f(-R[2][1], R[2][2]) * rad2deg;
51 g[2] = asinf ( R[2][0]) * rad2deg;

Completed in 376 milliseconds