From 145a3f20dee9dc810d20365bde2adfb8362a323c Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 21 Jun 2013 09:01:40 +0200 Subject: [PATCH] Changed atan2() to VECTOR2D::Angle() --- common/gal/opengl/opengl_gal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index 8b537b4c37..1bf42aa497 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -665,7 +665,7 @@ void OPENGL_GAL::DrawSegment( const VECTOR2D& aStartPoint, const VECTOR2D& aEndP double aWidth ) { VECTOR2D startEndVector = aEndPoint - aStartPoint; - double lineAngle = atan2( startEndVector.y, startEndVector.x ); + double lineAngle = startEndVector.Angle(); if( isFillEnabled ) { @@ -707,7 +707,7 @@ inline void OPENGL_GAL::drawLineCap( const VECTOR2D& aStartPoint, const VECTOR2D { VECTOR2D startEndVector = aEndPoint - aStartPoint; // double lineLength = startEndVector.EuclideanNorm(); - double lineAngle = atan2( startEndVector.y, startEndVector.x ); + double lineAngle = startEndVector.Angle(); switch( lineCap ) {