geirs2Panic  Richard J. Mathar
Fits header keyword batch editor
 All Classes Files Functions Variables Macros Pages
Line2D.h
Go to the documentation of this file.
1 #ifndef LINE2D_H
2 #define LINE2D_H
3 /*
4 * "$Header:$"
5 *
6 */
7 
8 /*
9 #include <string>
10 #include <vector>
11 */
12 
13 #include "Point2D.h"
14 
15 using namespace std ;
16 
22 class Line2D {
23 
24 public:
27  Point2D pts[2] ;
28 
29  Line2D(const Point2D & strt, const Point2D & fini) ;
30  Line2D() ;
31  // ~Line2D() ;
32 
33  Point2D at(double t) const ;
34 
35  Point2D turn90() const ;
36 
37  bool leftFrom(const Point2D & pt) const ;
38 
39  Point2D intersectInf(const Line2D & oth) const ;
40 
41 protected:
42 
43 private:
44 
45 } ; /* Line2D */
46 
47 #endif /* LINE2D_H */
48 
An oriented line section represented by the 2-dimensional coordinates of starting and terminating poi...
Definition: Line2D.h:22
A point with 2 coordinates represented in a Cartesian coordinate system.
Definition: Point2D.h:20