Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixiong-tang committed Mar 10, 2024
1 parent 14fad5f commit 577cb41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ struct Sequences
inline std::array<double, 2> cheap_ruler_k(double latitude)
{
// https://github.com/cubao/headers/blob/8ed287a7a1e2a5cd221271b19611ba4a3f33d15c/include/cubao/crs_transform.hpp#L212
static constexpr double M_PI = 3.14159265358979323846;
static constexpr double PI = 3.14159265358979323846;
static constexpr double RE = 6378.137;
static constexpr double FE = 1.0 / 298.257223563;
static constexpr double E2 = FE * (2 - FE);
static constexpr double RAD = M_PI / 180.0;
static constexpr double RAD = PI / 180.0;
static constexpr double MUL = RAD * RE * 1000.;
double coslat = std::cos(latitude * RAD);
double w2 = 1.0 / (1.0 - E2 * (1.0 - coslat * coslat));
Expand Down

0 comments on commit 577cb41

Please sign in to comment.