]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/profile.h
Make LCD output selectable at runtime through an extra I/O pin
[r2c2.git] / source / libmarklin / profile.h
index 92b2dfc20918b6e2d8b24dd2c64f341225bb5136..b1082e8192e8be471810338988f287f679d9c1de 100644 (file)
@@ -36,6 +36,8 @@ public:
        const Point &get_point(unsigned) const;
        const Point &get_min_coords() const { return min_coords; }
        const Point &get_max_coords() const { return max_coords; }
+       float get_width() const { return max_coords.x-min_coords.x; }
+       float get_height() const { return max_coords.y-min_coords.y; }
        Point get_edge_normal(unsigned) const;
 };