initial version
This commit is contained in:
21
geo/Line2D.h
Executable file
21
geo/Line2D.h
Executable 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
|
||||
Reference in New Issue
Block a user