]> Shamusworld >> Repos - architektonas/blobdiff - src/geometry.cpp
Fixed incorrect rotation in Arc object.
[architektonas] / src / geometry.cpp
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));