/home/martin/workspace/OpenStreetNav/src/projection/OrthoProjection.h
Go to the documentation of this file.
00001 /*
00002  * OrthoProjection.h
00003  *
00004  *  Created on: Nov 12, 2011
00005  *      Author: martin
00006  */
00007 
00008 #ifndef ORTHOPROJECTION_H_
00009 #define ORTHOPROJECTION_H_
00010 
00011 #include "MapProjection.h"
00012 
00013 namespace proj
00014 {
00015 
00021 class OrthoProjection : public MapProjection
00022 {
00023 public:
00024     OrthoProjection(geo::Point center, double radius);
00025     FlatPoint project(double lat, double lon);
00026     FlatPoint project(geo::Point const& p);
00027     geo::Point unproject(double x, double y);
00028     geo::Point unproject(FlatPoint const& p);
00029     virtual ~OrthoProjection();
00030 private:
00031     double lt, ln, r;
00032     double deg(double rad);
00033     double rad(double deg);
00034 };
00035 
00036 } /* namespace geo */
00037 #endif /* ORTHOPROJECTION_H_ */
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines