Lines Matching refs:values
726 void MPLSensor::calcOrientationSensor(float *R, float *values) in calcOrientationSensor() argument
732 values[0] = (float) atan2f(-R[3], R[0]); in calcOrientationSensor()
734 values[0] = (float) atan2f(R[1], R[4]); in calcOrientationSensor()
736 values[0] *= 57.295779513082320876798154814105f; in calcOrientationSensor()
737 if (values[0] < 0) { in calcOrientationSensor()
738 values[0] += 360.0f; in calcOrientationSensor()
746 values[1] = -asinf(tmp) * 57.295779513082320876798154814105f; in calcOrientationSensor()
748 values[1] = 180.0f - values[1]; in calcOrientationSensor()
750 if (values[1] > 180.0f) { in calcOrientationSensor()
751 values[1] -= 360.0f; in calcOrientationSensor()
755 values[2] = (float) atan2f(R[6], R[7]); in calcOrientationSensor()
757 values[2] = (float) atan2f(R[6], R[8]); in calcOrientationSensor()
760 values[2] *= 57.295779513082320876798154814105f; in calcOrientationSensor()
761 if (values[2] > 90.0f) { in calcOrientationSensor()
762 values[2] = 180.0f - values[2]; in calcOrientationSensor()
764 if (values[2] < -90.0f) { in calcOrientationSensor()
765 values[2] = -180.0f - values[2]; in calcOrientationSensor()