editor: added resize and better line representation

This commit is contained in:
2017-06-26 21:47:35 -04:00
parent 025d7cd6aa
commit d03571cb93
4 changed files with 36 additions and 33 deletions

View File

@@ -2,13 +2,14 @@
class LampshadeLine {
public:
LampshadeLine(bool orientation, float x, float y) : orientation(orientation), x(x), y(y)
{
}
LampshadeLine(bool orientation, float x, float y, float len) : orientation(orientation), x(x), y(y), len(len) {}
LampshadeLine(bool orientation, float x, float y) : orientation(orientation), x(x), y(y), len(1.) {}
LampshadeLine(bool orientation, float xy) : orientation(orientation), x(xy), y(xy), len(1.) {}
bool orientation;
float x;
float y;
float len;
const static bool Horizontal = 0;
const static bool Vertical = 1;