17 lines
517 B
C++
17 lines
517 B
C++
#pragma once
|
|
|
|
class LampshadeLine {
|
|
public:
|
|
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;
|
|
};
|