]> rtime.felk.cvut.cz Git - hubacji1/psp.git/commitdiff
Move precision workaround to parallel slot
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Tue, 27 Aug 2019 11:04:54 +0000 (13:04 +0200)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Tue, 27 Aug 2019 11:04:56 +0000 (13:04 +0200)
src/psp.cc

index 5992e3ec54a55599abd5232ac7d803bf5c82eafc..d9635df388eacfc13d49586500c8e2e892b21c18 100644 (file)
@@ -63,8 +63,8 @@ void PSPlanner::guess_gc()
         double dts = + M_PI / 2; // direction to slot
         if (this->ps().right())
                 dts = - M_PI / 2;
-        dts *= 0.99; // precision workaround
         if (this->ps().parallel()) {
+                dts *= 0.99; // precision workaround
                 x += (this->gc().w() / 2 + 0.01) * cos(h + dts);
                 x += (this->gc().dr() + 0.01) * cos(h);
                 y += (this->gc().w() / 2 + 0.01) * sin(h + dts);