This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/geo/Line2D.h
2016-01-21 11:10:55 +01:00

22 lines
388 B
C++
Executable File

#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