Showing the changes to interface/src/Application.cpp (1 of 20 files). Show all
Unified · Split
| @@ -5070,7 +5070,7 @@ void Application::emulateMouse(Hand* hand, float click, float shift, int index) · 5069 unmodified lines | ||
| 5070 | 5070 | glm::vec3 direction = glm::inverse(_myAvatar->getOrientation()) * palm->getFingerDirection(); |
| 5071 | 5071 | |
| 5072 | 5072 | // Get the angles, scaled between (-0.5,0.5) |
| 5073 | − float xAngle = (atan2(direction.z, direction.x) + M_PI_2); | |
| 5073 | + float xAngle = (atan2f(direction.z, direction.x) + (float)M_PI_2); | |
| 5074 | 5074 | float yAngle = 0.5f - ((atan2f(direction.z, direction.y) + (float)M_PI_2)); |
| 5075 | 5075 | auto canvasSize = qApp->getCanvasSize(); |
| 5076 | 5076 | // Get the pixel range over which the xAngle and yAngle are scaled |