aboutsummaryrefslogtreecommitdiff
path: root/src/pj_msfn.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-12-18 20:24:11 +0100
committerEven Rouault <even.rouault@spatialys.com>2018-12-26 10:08:53 +0100
commit610957f7035242f15743c399ffd429b92bc36206 (patch)
tree73f0d51147e2f4860c4bfc875f7a4bf9359386d4 /src/pj_msfn.cpp
parent355d681ed88019e97742344bd642c2fd97e700a1 (diff)
downloadPROJ-610957f7035242f15743c399ffd429b92bc36206.tar.gz
PROJ-610957f7035242f15743c399ffd429b92bc36206.zip
cpp conversion: minimal steps to fix compilation errors, not warnings
Diffstat (limited to 'src/pj_msfn.cpp')
-rw-r--r--src/pj_msfn.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pj_msfn.cpp b/src/pj_msfn.cpp
new file mode 100644
index 00000000..999e73a7
--- /dev/null
+++ b/src/pj_msfn.cpp
@@ -0,0 +1,7 @@
+/* determine constant small m */
+#include <math.h>
+#include "projects.h"
+ double
+pj_msfn(double sinphi, double cosphi, double es) {
+ return (cosphi / sqrt (1. - es * sinphi * sinphi));
+}