Hi. As I understand, you need a Java function of x, computing y,
for a path from lower left point 'a' to upper right point 'b'. 'a'
and 'b' are joined by an S-curve from an arc to a tangent line to another
arc. The arcs are specified by radius & slope at points a and b.
I can deliver this function.
f = new ArcsAndTangentHeights(x_a, y_a, r_a, s_a, x_b, y_b, r_b, s_b);
for (double x = ...; ...; x += step) {
double y = [login to view URL](x);
...
}
If f is created with values
x_a=3,y_a=0, r_a=4, s_a=0.125, x_b=15,y_b=15, r_b=7, s_b=0.167
Then f(x) should produce y as below.
Have I understood correctly?
x y
1.5000 -0.18750
1.7500 -0.15625
2.0000 -0.12500
2.2500 -0.093750
2.5000 -0.062500
2.7500 -0.031250
3.0000 0.0000
3.2500 0.039318
3.5000 0.095133
3.7500 0.16817
4.0000 0.25945
4.2500 0.37036
4.5000 0.50278
4.7500 0.65930
5.0000 0.84353
5.2500 1.0607
5.5000 1.3190
5.7500 1.6319
6.0000 2.0257
6.2500 2.5594
6.5000 3.1571
6.7500 3.7548
7.0000 4.3526
7.2500 4.9503
7.5000 5.5481
7.7500 6.1458
8.0000 6.7436
8.2500 7.3413
8.5000 7.9391
8.7500 8.5368
9.0000 9.1346
9.2500 9.7323
9.5000 10.330
9.7500 10.924
10.000 11.433
10.250 11.858
10.500 12.224
10.750 12.546
11.000 12.833
11.250 13.092
11.500 13.325
11.750 13.537
12.000 13.731
12.250 13.906
12.500 14.067
12.750 14.213
13.000 14.345
13.250 14.465
13.500 14.573
13.750 14.670
14.000 14.756
14.250 14.832
14.500 14.898
14.750 14.954
15.000 15.000
15.250 15.042
15.500 15.084
15.750 15.125
16.000 15.167
16.250 15.209
16.500 15.251