诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 regels
745 B

  1. #include "stdafx.h"
  2. // 两个数的差的平方,坐标差的平方。
  3. inline double diffsqr(double x1, double x2);
  4. //直接坐标表示,求距离
  5. inline double distance(double x1, double y1, double z1, double x2, double y2, double z2);
  6. //点表示,求距离
  7. double distance(const CRDCARTESIAN &p1, const CRDCARTESIAN &p2);
  8. //pcc:指向所转换出的笛卡尔坐标的指针;
  9. //pcg:指向待转换的大地坐标的指针;
  10. //dSemiMajorAxis:参考椭球的长半轴;
  11. //dFlattening:参考椭球的扁率。
  12. //由大地坐标转换为笛卡尔坐标
  13. void GeodeticToCartesian(PCRDCARTESIAN pcc, PCRDGEODETIC pcg, double dSemiMajorAxis, double dFlattening);
  14. //获取两个经纬度之间距离
  15. //经度
  16. //维度
  17. double GetJuLi(double longitude1, double latitude1, double longitude2, double latitude2);