Changed atan2() to VECTOR2D::Angle()

This commit is contained in:
Maciej Suminski 2013-06-21 09:01:40 +02:00
parent 8552a6e29d
commit 145a3f20de
1 changed files with 2 additions and 2 deletions

View File

@ -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 )
{