From f6bbbb6e6df18afea2134e2150f2e1a253822e15 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Wed, 6 Apr 2011 08:13:55 +0200 Subject: [PATCH] Inversed rotation angle in drawables, to make it match the Y axis pointing down in SFML (fixes issue #3) --- include/SFML/Graphics/Matrix3.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SFML/Graphics/Matrix3.inl b/include/SFML/Graphics/Matrix3.inl index 6371ef4a..e7f7f629 100644 --- a/include/SFML/Graphics/Matrix3.inl +++ b/include/SFML/Graphics/Matrix3.inl @@ -107,7 +107,7 @@ inline Matrix3 Matrix3::operator *(const Matrix3& right) const inline Matrix3 Matrix3::Transformation(const Vector2f& origin, const Vector2f& translation, float rotation, const Vector2f& scale) { // Combine the transformations - float angle = rotation * 3.141592654f / 180.f; + float angle = -rotation * 3.141592654f / 180.f; float cosine = static_cast(std::cos(angle)); float sine = static_cast(std::sin(angle)); float sxCos = scale.x * cosine;