always use std:: namespace for math functions

fixes #201
This commit is contained in:
Konstantin Käfer
2014-05-14 16:40:24 +02:00
parent b8d88600b8
commit b167a79c22
24 changed files with 115 additions and 115 deletions

View File

@@ -189,8 +189,8 @@ mat4 Painter::translatedMatrix(const std::array<float, 2> &translation, const Ti
mat4 result;
if (anchor == TranslateAnchor::Viewport) {
const double sin_a = sin(-map.getState().getAngle());
const double cos_a = cos(-map.getState().getAngle());
const double sin_a = std::sin(-map.getState().getAngle());
const double cos_a = std::cos(-map.getState().getAngle());
matrix::translate(result, matrix,
factor * (translation[0] * cos_a - translation[1] * sin_a),
factor * (translation[0] * sin_a + translation[1] * cos_a),