1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 23:03:22 +02:00
GPXSee/src/map/mercator.h

30 lines
608 B
C
Raw Normal View History

#ifndef MERCATOR_H
#define MERCATOR_H
#include "ct.h"
class Ellipsoid;
class Mercator : public CT
{
public:
Mercator(const Ellipsoid *ellipsoid, double latitudeOrigin,
double longitudeOrigin, double falseEasting, double falseNorthing);
virtual CT *clone() const {return new Mercator(*this);}
virtual PointD ll2xy(const Coordinates &c) const;
virtual Coordinates xy2ll(const PointD &p) const;
private:
double _a, _es, _e;
double _latitudeOrigin;
double _longitudeOrigin;
double _falseNorthing;
double _falseEasting;
double _scaleFactor;
double _ab, _bb, _cb, _db;
};
#endif // MERCATOR_H