From a6b8028671329872326c5e8ebd8037658f4c066f Mon Sep 17 00:00:00 2001 From: Shamus Hammons Date: Sun, 16 Feb 2014 21:34:37 -0600 Subject: [PATCH] Fixed incorrect rotation in Arc object. --- src/arc.cpp | 2 +- src/geometry.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.37.2