29 static double lon_center[12];
30 static double feast[12];
45 lon_center[0] = -1.74532925199;
46 lon_center[1] = -1.74532925199;
47 lon_center[2] = 0.523598775598;
48 lon_center[3] = 0.523598775598;
49 lon_center[4] = -2.79252680319;
50 lon_center[5] = -1.0471975512;
51 lon_center[6] = -2.79252680319;
52 lon_center[7] = -1.0471975512;
53 lon_center[8] = 0.349065850399;
54 lon_center[9] = 2.44346095279;
55 lon_center[10] = 0.349065850399;
56 lon_center[11] = 2.44346095279;
60 feast[0] =
R * -1.74532925199;
61 feast[1] =
R * -1.74532925199;
62 feast[2] =
R * 0.523598775598;
63 feast[3] =
R * 0.523598775598;
64 feast[4] =
R * -2.79252680319;
65 feast[5] =
R * -1.0471975512;
66 feast[6] =
R * -2.79252680319;
67 feast[7] =
R * -1.0471975512;
68 feast[8] =
R * 0.349065850399;
69 feast[9] =
R * 2.44346095279;
70 feast[10] =
R * 0.349065850399;
71 feast[11] =
R * 2.44346095279;
97 if (
y >=
R * 0.710987989993)
99 if (
x <=
R * -0.698131700798) region = 0;
104 if (
x <=
R * -0.698131700798) region = 1;
107 else if (
y >=
R * -0.710987989993)
109 if (
x <=
R * -1.74532925199) region = 4;
110 else if (
x <=
R * -0.349065850399) region = 5;
111 else if (
x <=
R * 1.3962634016) region = 8;
116 if (
x <=
R * -1.74532925199) region = 6;
117 else if (
x <=
R * -0.349065850399) region = 7;
118 else if (
x <=
R * 1.3962634016) region = 10;
121 x =
x - feast[region];
123 if (region==1||region==3||region==4||region==5||region==8||region==9)
134 temp = lon_center[region] +
x / (
R * cos(*
lat));
137 else *
lon = lon_center[region];
144 *
lon = lon_center[region]+(
x/(0.900316316158 *
R * cos(theta)));
146 arg = (2.0 * theta + sin(2.0 * theta)) /
PI;
158 if (region == 0 && (*
lon < -(
PI +
EPSLN) || *
lon > -0.698131700798))
160 if (region == 1 && (*
lon < -(
PI +
EPSLN) || *
lon > -0.698131700798))
162 if (region == 2 && (*lon < -0.698131700798 || *lon >
PI +
EPSLN))
164 if (region == 3 && (*lon < -0.698131700798 || *lon >
PI +
EPSLN))
166 if (region == 4 && (*
lon < -(
PI +
EPSLN) || *
lon > -1.74532925199))
168 if (region == 5 && (*lon < -1.74532925199 || *lon > -0.349065850399))
170 if (region == 6 && (*
lon < -(
PI +
EPSLN) || *
lon > -1.74532925199))
172 if (region == 7 && (*lon < -1.74532925199 || *lon > -0.349065850399))
174 if (region == 8 && (*lon < -0.349065850399 || *lon > 1.3962634016))
176 if (region == 9 && (*lon < 1.3962634016|| *lon >
PI +
EPSLN))
178 if (region ==10 && (*lon < -0.349065850399 || *lon > 1.3962634016))
180 if (region ==11 && (*lon < 1.3962634016 || *lon >
PI +
EPSLN))