MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / WireSphereLocal

Function WireSphereLocal

xdevice.cpp:2617–2632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2615// meridian, zodiac position and latitude, or Earth coordinates.
2616
2617void 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
2634void WireSpherePrime(real azi, real alt, int zr, int *xp, int *yp, int *zp)
2635{

Callers 5

WireSpherePrimeFunction · 0.85
WireSphereMeridianFunction · 0.85
WireSphereZodiacFunction · 0.85
WireSphereEarthFunction · 0.85
WireChartSphereFunction · 0.85

Calls 2

ModFunction · 0.85
CoorXformFunction · 0.85

Tested by

no test coverage detected