⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hh.h

📁 本程序是常用地图投影系列小程序之一
💻 H
字号:
//CoorTrans.h   文件 
#ifndef   _COORTRANS_H_INCLUDED 
#define   _COORTRANS_H_INCLUDED 

#include   "stdafx.h " 
#include   "math.h " 

const   double   PI   =   3.141592653589793; 

double   Dms2Rad(double   Dms); 
double   Rad2Dms(double   Rad); 

class   PrjPoint 
{ 
public: 
  double   L0;   //   中央子午线经度 
  double   B,   L;   //   大地坐标 
  double   x,   y;   //   高斯投影平面坐标 
public: 
  bool   BL2xy(); 
  bool   xy2BL(); 

protected: 
  double   a,   f,   e2,   e12;   //   基本椭球参数 
  double   A1,   A2,   A3,   A4;   //   用于计算X的椭球参数 

public: 
  bool   SetL0(double   dL0); 
  bool   SetBL(double   dB,   double   dL); 
  bool   GetBL(double   *dB,   double   *dL); 
  bool   Setxy(double   dx,   double   dy); 
  bool   Getxy(double   *dx,   double   *dy); 
}; 

class   PrjPoint_Krasovsky   :   virtual   public   PrjPoint   //类的继承,声明基类是   PrjPoint,虚基类 
{ 
public: 
  PrjPoint_Krasovsky();   //定义构造函数,用来初始化。(函数名和类名相同) 
  ~PrjPoint_Krasovsky(); 
}; 

class   PrjPoint_IUGG1975   :   virtual   public   PrjPoint 
{ 
public: 
  PrjPoint_IUGG1975(); 
  ~PrjPoint_IUGG1975(); 
}; 

#endif   /*   ndef   _COORTRANS_H_INCLUDED   */ 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -