1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/misc/gctpc/files/patch-cproj.h
Mathieu Arnold b9c139bf86 Unbreak.
PR:		208716
Submitted by:	tkato432 yahoo com
Sponsored by:	Absolight
2016-04-12 15:06:10 +00:00

44 lines
1.3 KiB
C

--- cproj.h.orig 1998-06-24 21:25:45 UTC
+++ cproj.h
@@ -1,4 +1,7 @@
#include <math.h>
+#ifndef INCLUDED_CPROJ_H
+#define INCLUDED_CPROJ_H
+
#include "proj.h"
#define PI 3.141592653589793238
@@ -27,3 +30,32 @@
#define IMOD(A, B) (A) - (((A) / (B)) * (B)) /* Integer mod function */
+/* Not part of the original gctpc distribution. */
+
+#ifdef NEED_SINCOS
+void
+sincos(double val, double *sin_val, double *cos_val);
+#endif
+
+double asinz (double con);
+double msfnz (double eccent, double sinphi, double cosphi);
+double qsfnz (double eccent, double sinphi, double cosphi);
+double phi1z (double eccent, double qs, long int *flag);
+double phi2z(double eccent, double ts, long int *flag);
+double phi3z(double ml, double e0, double e1, double e2, double e3, long int *flag);
+double phi4z (double eccent, double e0, double e1, double e2, double e3,
+ double a, double b, double *c, double *phi);
+double pakcz(double pak);
+double pakr2dm(double pak);
+double tsfnz(double eccent, double phi, double sinphi);
+int sign(double x);
+double adjust_lon(double x);
+double e0fn(double x);
+double e1fn(double x);
+double e2fn(double x);
+double e3fn(double x);
+double e4fn(double x);
+double mlfn(double e0, double e1, double e2, double e3, double phi);
+long calc_utm_zone(double lon);
+
+#endif // INCLUDED_CPROJ_H