This commit is contained in:
2025-07-16 14:06:31 +08:00
parent 31bcd2d2bf
commit 4e7f5eeb7a
92 changed files with 155 additions and 133 deletions

View File

@@ -25,7 +25,7 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/geometry.h"
#include "gctl/math.h"
using namespace gctl;
@@ -60,7 +60,7 @@ int main(int argc, char const *argv[]) try
std::cout << "Geocentric: " << ps << std::endl;
// 转换为大地坐标
point3ds pd;
ellip.xyz2geodetic(ps.s2c(), pd.lon, pd.lat, pd.rad);
ellip.xyz2geodetic(s2c(ps), pd.lon, pd.lat, pd.rad);
std::cout << "Geodetic: " << pd << std::endl;
// 400km高
pd.rad = 400000.0;