- assertions - distributions new helper methods worked on stairs worked on grid-walkers worked on navigation
26 lines
472 B
C
26 lines
472 B
C
#ifndef STAIR_H
|
|
#define STAIR_H
|
|
|
|
#include "../geo/BBox2.h"
|
|
#include "../geo/Point2.h"
|
|
|
|
/** a simple stair with a slope from A to B */
|
|
struct Stair {
|
|
|
|
/** starting line of the stair */
|
|
Line2 start;
|
|
|
|
/** the direction to move all the starting points to */
|
|
Point2 dir;
|
|
|
|
|
|
/** empty ctor */
|
|
Stair() : start(), dir() {;}
|
|
|
|
/** ctor with starting edge and stair-direction */
|
|
Stair(const Line2& start, const Point2& dir) : start(start), dir(dir) {;}
|
|
|
|
};
|
|
|
|
#endif // STAIR_H
|