| 2615 | // meridian, zodiac position and latitude, or Earth coordinates. |
| 2616 | |
| 2617 | void WireSphereLocal(real azi, real alt, int zr, int *xp, int *yp, int *zp) |
| 2618 | { |
| 2619 | if (gs.fEcliptic) { |
| 2620 | azi = Mod(azi - rDegQuad); neg(alt); |
| 2621 | CoorXform(&azi, &alt, Lat - rDegQuad); |
| 2622 | azi = Mod(cp0.lonMC - azi + rDegQuad); |
| 2623 | EquToEcl(&azi, &alt); |
| 2624 | azi = rDegMax - Untropical(azi); neg(alt); |
| 2625 | } |
| 2626 | azi = Mod(rDegQuad*3 - (azi + gs.rRot)); |
| 2627 | if (gs.rTilt != 0.0) |
| 2628 | CoorXform(&azi, &alt, gs.rTilt); |
| 2629 | *xp = (int)((real)zr * RCosD(alt) * RSinD(azi) - rRound); |
| 2630 | *yp = (int)((real)zr * RCosD(alt) * RCosD(azi) - rRound); |
| 2631 | *zp = -(int)((real)zr * RSinD(alt) - rRound); |
| 2632 | } |
| 2633 | |
| 2634 | void WireSpherePrime(real azi, real alt, int zr, int *xp, int *yp, int *zp) |
| 2635 | { |
no test coverage detected