Parametrized toolchanges, experiments with sparse wipe tower, etc

This commit is contained in:
Lukas Matena 2018-02-21 13:07:32 +01:00
parent 37bbeeb9d0
commit 5ca0a2f37d
3 changed files with 441 additions and 457 deletions

View file

@ -17,6 +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 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; }