initial version

This commit is contained in:
2016-01-21 11:10:55 +01:00
parent 8818a9b216
commit a7dc0cabbb
21 changed files with 1397 additions and 0 deletions

21
geo/Line2D.h Executable file
View File

@@ -0,0 +1,21 @@
#ifndef LINE2D_H
#define LINE2D_H
#include <KLib/geo/Line.h>
class Line2D : public K::Line {
public:
Line2D() : K::Line() {;}
Line2D(const float x1, const float y1, const float x2, const float y2) : K::Line(x1,y1,x2,y2) {;}
bool getSegmentIntersection(const Line& other) const {
static K::Point p;
return K::Line::getSegmentIntersection(other, p);
}
};
#endif // LINE2D_H