aboutsummaryrefslogtreecommitdiff
path: root/src/patch/coords.hh
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2001-08-06 13:43:20 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2001-08-06 13:43:20 +0000
commit734c4a229deb64d98d4d20e1bd20167a697f6e92 (patch)
tree8fc48bf97731d199e18657de0dcd9354276cc4b3 /src/patch/coords.hh
parented0b7ba75de5dd7d20c694df99a79535a2f00e8c (diff)
when comparing angles from different patches,
compare them mod 2*pi radians (360 degrees) git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@249 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch/coords.hh')
-rw-r--r--src/patch/coords.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/patch/coords.hh b/src/patch/coords.hh
index 0a87503..d12650e 100644
--- a/src/patch/coords.hh
+++ b/src/patch/coords.hh
@@ -104,6 +104,10 @@
namespace local_coords
{
+// compare if two angles are fuzzily equal mod 2pi radians (360 degrees)
+bool fuzzy_EQ_ang(fp ang1, fp ang2); // radians
+bool fuzzy_EQ_dang(fp ang1, fp ang2); // degrees
+
// ((mu,nu,phi)) --> the 3rd
fp phi_of_mu_nu(fp mu, fp nu );
fp nu_of_mu_phi(fp mu, fp phi);