| 534 | // we return the true midpoint closest to the positions in question. |
| 535 | |
| 536 | real Midpoint(real deg1, real deg2) |
| 537 | { |
| 538 | real mid; |
| 539 | |
| 540 | mid = (deg1 + deg2)/2.0; |
| 541 | return MinDistance(deg1, mid) < rDegQuad ? mid : Mod(mid + rDegHalf); |
| 542 | } |
| 543 | |
| 544 | |
| 545 | // Like Midpoint() but return the point proportioned between the two degrees. |
no test coverage detected