Fixed cooling time calculation, removed unnecessary diagonal moves, fixed 'stringing' on start and end of narrower wipe tower layers

This commit is contained in:
Lukas Matena 2018-03-05 16:51:31 +01:00
parent 4058f00275
commit 6c223c2f84
2 changed files with 11 additions and 11 deletions

View file

@ -17,7 +17,7 @@ public:
struct xy
{
xy(float x = 0.f, float y = 0.f) : x(x), y(y) {}
xy(xy& pos,float xp,float yp) : x(pos.x+xp), y(pos.y+yp) {}
xy(const xy& pos,float xp,float yp) : x(pos.x+xp), y(pos.y+yp) {}
xy operator+(const xy &rhs) const { xy out(*this); out.x += rhs.x; out.y += rhs.y; return out; }
xy operator-(const xy &rhs) const { xy out(*this); out.x -= rhs.x; out.y -= rhs.y; return out; }
xy& operator+=(const xy &rhs) { x += rhs.x; y += rhs.y; return *this; }