gps_distance.h 559 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #ifndef _IV_DECITION_GPS_DISTANCE_
  3. #define _IV_DECITION_GPS_DISTANCE_
  4. namespace iv {
  5. namespace decition {
  6. // 计算弧度
  7. double rad(double d);
  8. // 从两个gps坐标点(经纬度)获得两点的直线距离,单位是米
  9. double CalcDistance(double , double , double , double );
  10. //计算直角坐标距离
  11. double DirectDistance(double, double, double, double);
  12. //计算直角坐标角度
  13. double DirectAngle(double, double, double, double);
  14. }
  15. }
  16. #endif // !_IV_DECITION_GPS_DISTANCE_