aboutsummaryrefslogtreecommitdiff
path: root/src/biveval.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@mines-paris.org>2018-12-31 11:37:51 +0100
committerGitHub <noreply@github.com>2018-12-31 11:37:51 +0100
commit32f3ef47e55c38b0eabb6d781fee3944d3239414 (patch)
treeba2850500ee732559bada055dbab281ceff49a22 /src/biveval.cpp
parent5c41d3a1078895ed096b416db15c91108bccad87 (diff)
parent0e0e0e475414ddeb75e0e140d8a3381a431036d9 (diff)
downloadPROJ-32f3ef47e55c38b0eabb6d781fee3944d3239414.tar.gz
PROJ-32f3ef47e55c38b0eabb6d781fee3944d3239414.zip
Merge pull request #1208 from rouault/merge_PJ_and_PJ_OBJ
Unify PJ_OBJ and PJ structures
Diffstat (limited to 'src/biveval.cpp')
-rw-r--r--src/biveval.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/biveval.cpp b/src/biveval.cpp
index 05e83e21..9ead2fb7 100644
--- a/src/biveval.cpp
+++ b/src/biveval.cpp
@@ -1,7 +1,8 @@
/* procedures for evaluating Tseries */
-# include "projects.h"
+#include "proj.h"
+#include "proj_internal.h"
# define NEAR_ONE 1.00001
-static double ceval(struct PW_COEF *C, int n, projUV w, projUV w2) {
+static double ceval(struct PW_COEF *C, int n, PJ_UV w, PJ_UV w2) {
double d=0, dd=0, vd, vdd, tmp, *c;
int j;
@@ -28,10 +29,10 @@ static double ceval(struct PW_COEF *C, int n, projUV w, projUV w2) {
return (w.u * d - dd);
}
-projUV /* bivariate Chebyshev polynomial entry point */
-bcheval(projUV in, Tseries *T) {
- projUV w2, w;
- projUV out;
+PJ_UV /* bivariate Chebyshev polynomial entry point */
+bcheval(PJ_UV in, Tseries *T) {
+ PJ_UV w2, w;
+ PJ_UV out;
/* scale to +-1 */
w.u = ( in.u + in.u - T->a.u ) * T->b.u;
w.v = ( in.v + in.v - T->a.v ) * T->b.v;
@@ -47,9 +48,9 @@ bcheval(projUV in, Tseries *T) {
return out;
}
-projUV /* bivariate power polynomial entry point */
-bpseval(projUV in, Tseries *T) {
- projUV out;
+PJ_UV /* bivariate power polynomial entry point */
+bpseval(PJ_UV in, Tseries *T) {
+ PJ_UV out;
double *c, row;
int i, m;
@@ -75,8 +76,8 @@ bpseval(projUV in, Tseries *T) {
return out;
}
-projUV /* general entry point selecting evaluation mode */
-biveval(projUV in, Tseries *T) {
+PJ_UV /* general entry point selecting evaluation mode */
+biveval(PJ_UV in, Tseries *T) {
if (T->power) {
return bpseval(in, T);