22 lines
388 B
C++
Executable File
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
|