]> Shamusworld >> Repos - architektonas/commitdiff
Fixed incorrect rotation in Arc object.
authorShamus Hammons <jlhamm@acm.org>
Mon, 17 Feb 2014 03:34:37 +0000 (21:34 -0600)
committerShamus Hammons <jlhamm@acm.org>
Mon, 17 Feb 2014 03:34:37 +0000 (21:34 -0600)
src/arc.cpp
src/geometry.cpp

index 6aefc1c52bc663d1070e8b8e252f175962266737..d4d747b7df80d1a3a7dd7cb8c4e1010609e82b7a 100644 (file)
@@ -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();
 }
 
 
index 41928aa629b7b253798ad19a1a0b73c3b56c19e5..058dbfa14c06895ce659db9310ad778e57f7c925 100644 (file)
@@ -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));