Skip to content

Commit

Permalink
Remove unnecessary use of boost::math
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Oct 11, 2024
1 parent 9a069b6 commit 55a4896
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions maps/src/pointing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#include <G3Map.h>
#include <G3Units.h>

#include <boost/math/constants/constants.hpp>

#include <vector>
#include <math.h>
#include <iostream>
Expand All @@ -14,10 +12,6 @@
#include <stdlib.h>
#include <time.h>

using namespace boost::math;

const double PI = constants::pi<double>();

#define ASIN asin
#define ATAN2 atan2

Expand Down Expand Up @@ -92,7 +86,7 @@ quat_ang_sep(quat a, quat b)
if (d > 1)
return 0;
if (d < -1)
return PI * G3Units::rad;
return M_PI * G3Units::rad;
return acos(d) * G3Units::rad;
}

Expand Down

0 comments on commit 55a4896

Please sign in to comment.