36 lines
807 B
C
36 lines
807 B
C
/*
|
||
* © Copyright 2014 – Urheberrechtshinweis
|
||
* Alle Rechte vorbehalten / All Rights Reserved
|
||
*
|
||
* Programmcode ist urheberrechtlich geschuetzt.
|
||
* Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner.
|
||
* Keine Verwendung ohne explizite Genehmigung.
|
||
* (vgl. § 106 ff UrhG / § 97 UrhG)
|
||
*/
|
||
|
||
#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
|