tmp
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "gctl/core.h"
|
||||
#include "gctl/io.h"
|
||||
#include "gctl/utility.h"
|
||||
#include "gctl/math/gmath.h"
|
||||
|
||||
int main(int argc, char *argv[]) try
|
||||
{
|
||||
@@ -134,11 +135,11 @@ The inputting continues until encounter a blank line or 'EOF'. Any lines start w
|
||||
throw err_str;
|
||||
}
|
||||
|
||||
ps = pc.c2s();
|
||||
ps = c2s(pc);
|
||||
if (ref_str != "NULL")
|
||||
{
|
||||
ps.rad = gctl::ellipse_radius_2d(ref_R, ref_r, ps.lat*GCTL_Pi/180.0);
|
||||
pc = ps.s2c();
|
||||
pc = s2c(ps);
|
||||
}
|
||||
|
||||
if (verbose) std::cout << std::setprecision(pre_int) << pc.x << "," << pc.y << "," << pc.z << ",";
|
||||
@@ -163,7 +164,7 @@ The inputting continues until encounter a blank line or 'EOF'. Any lines start w
|
||||
{
|
||||
ps.rad = gctl::ellipse_radius_2d(ref_R, ref_r, ps.lat*GCTL_Pi/180.0);
|
||||
}
|
||||
pc = ps.s2c();
|
||||
pc = s2c(ps);
|
||||
|
||||
if (verbose) std::cout << std::setprecision(pre_int) << ps.rad << "," << ps.lon << "," << ps.lat << ",";
|
||||
std::cout << std::setprecision(pre_int) << pc.x << "," << pc.y << "," << pc.z << std::endl;
|
||||
|
Reference in New Issue
Block a user