diff options
author | jaseg <git@jaseg.de> | 2021-06-04 23:28:36 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-06-04 23:28:36 +0200 |
commit | 61887e9ee1a108c26cdd4b2d67fc4095d62b6e9d (patch) | |
tree | 6773b748eaf4983ae20c5196e8b20dfa370c0b0b /svg-flatten/include/geom2d.hpp | |
parent | 6193fa151eb503a769e9affd8da330cd50895be7 (diff) | |
download | gerbolyze-61887e9ee1a108c26cdd4b2d67fc4095d62b6e9d.tar.gz gerbolyze-61887e9ee1a108c26cdd4b2d67fc4095d62b6e9d.tar.bz2 gerbolyze-61887e9ee1a108c26cdd4b2d67fc4095d62b6e9d.zip |
Add & fix vectorizer tests
Diffstat (limited to 'svg-flatten/include/geom2d.hpp')
-rw-r--r-- | svg-flatten/include/geom2d.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svg-flatten/include/geom2d.hpp b/svg-flatten/include/geom2d.hpp index 82dbfb5..9f83754 100644 --- a/svg-flatten/include/geom2d.hpp +++ b/svg-flatten/include/geom2d.hpp @@ -72,14 +72,14 @@ namespace gerbolyze { } xform2d &translate(double x, double y) { - x0 += x*xx + y*xy; - y0 += y*yy + x*yx; + xform2d xf(1, 0, 0, 1, x, y); + transform(xf); return *this; } xform2d &scale(double x, double y) { - xx *= x; yx *= y; xy *= x; - yy *= y; x0 *= x; y0 *= y; + xform2d xf(x, 0, 0, y); + transform(xf); return *this; } |