From: Shamus Hammons Date: Mon, 17 Feb 2014 03:34:37 +0000 (-0600) Subject: Fixed incorrect rotation in Arc object. X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=architektonas;a=commitdiff_plain;h=a6b8028671329872326c5e8ebd8037658f4c066f Fixed incorrect rotation in Arc object. --- diff --git a/src/arc.cpp b/src/arc.cpp index 6aefc1c..d4d747b 100644 --- a/src/arc.cpp +++ b/src/arc.cpp @@ -466,7 +466,7 @@ same reference number. Point c2 = Geometry::RotatePointAroundPoint(angleStartPoint, point, angle); position = c1; - startAngle = Vector(c2, c1).Angle(); + startAngle = Vector(c1, c2).Angle(); } diff --git a/src/geometry.cpp b/src/geometry.cpp index 41928aa..058dbfa 100644 --- a/src/geometry.cpp +++ b/src/geometry.cpp @@ -85,6 +85,7 @@ Point Geometry::MirrorPointAroundLine(Point point, Point tail, Point head) Point Geometry::RotatePointAroundPoint(Point point, Point rotationPoint, double angle) { Vector v = Vector(point, rotationPoint); +// Vector v = Vector(rotationPoint, point); double px = (v.x * cos(angle)) - (v.y * sin(angle)); double py = (v.x * sin(angle)) + (v.y * cos(angle));