Code cleanup
[GPXSee.git] / src / map / lambertconic.h
blobde1e9685f7cb23f76765590265e6f687852d8661
1 #ifndef LAMBERTCONIC_H
2 #define LAMBERTCONIC_H
4 #include "ct.h"
6 class Ellipsoid;
8 class LambertConic1 : public CT
10 public:
11 LambertConic1() {}
12 LambertConic1(const Ellipsoid *ellipsoid, double latitudeOrigin,
13 double longitudeOrigin, double scale, double falseEasting,
14 double falseNorthing);
16 virtual CT *clone() const {return new LambertConic1(*this);}
18 virtual PointD ll2xy(const Coordinates &c) const;
19 virtual Coordinates xy2ll(const PointD &p) const;
21 private:
22 double _longitudeOrigin;
23 double _falseEasting;
24 double _falseNorthing;
26 double _e;
27 double _e_over_2;
28 double _n;
29 double _t0;
30 double _rho0;
31 double _rho_olat;
34 class LambertConic2 : public CT
36 public:
37 LambertConic2(const Ellipsoid *ellipsoid, double standardParallel1,
38 double standardParallel2, double latitudeOrigin, double longitudeOrigin,
39 double falseEasting, double falseNorthing);
41 virtual CT *clone() const {return new LambertConic2(*this);}
43 virtual PointD ll2xy(const Coordinates &c) const;
44 virtual Coordinates xy2ll(const PointD &p) const;
46 private:
47 LambertConic1 _lc1;
50 #endif // LAMBERTCONIC_H