UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
coord2d.hpp
1 /* coord2d.hpp */
2 /* $Id: coord2d.hpp,v 1.3 2008/09/18 10:45:47 vlad Exp $ */
3 
4 /*
5  * $Log: coord2d.hpp,v $
6  * Revision 1.3 2008/09/18 10:45:47 vlad
7  * + new constructor TransformCoord2D()
8  *
9  * Revision 1.2 2007/06/29 13:27:33 vlad
10  * 1) Fixed errors in comments
11  * 2) +transformBack()
12  *
13  * Revision 1.1 2007/06/12 15:04:16 ibadm
14  * + makefiles and coord2d transformation from GeoEast-VSP
15  *
16  * Revision 1.1 2007/05/30 13:59:22 vlad
17  * + tested Affine transformations
18  *
19  */
20 
21 #ifndef __coord2d_hpp
22 #define __coord2d_hpp
23 
24 
49 {
50 public:
51 
54 
59  TransformCoord2D (double x0, double y0, double angle);
60 
65  TransformCoord2D (double x0, double y0, double x1, double y1);
66 
69  void transform (double x, double y, double& x1, double& y1) const;
70 
72  double transformX (double x, double y) const;
73 
75  double transformY (double x, double y) const;
76 
79  void transformBack (double x1, double y1,
80  double& x, double& y) const;
81 
82 
83 protected:
84 
86  double m_fA[2][2];
87 
89  double m_fX0, m_fY0;
90 
91 };
92 
93 
94 #endif /* coord2d.hpp */
Definition: coord2d.hpp:48
void transformBack(double x1, double y1, double &x, double &y) const
double transformX(double x, double y) const
double transformY(double x, double y) const
void transform(double x, double y, double &x1, double &y1) const
double m_fA[2][2]
Definition: coord2d.hpp:86
double m_fX0
Definition: coord2d.hpp:89