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

Function ChartAstroGraph

charts1.cpp:1900–2284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1898// zenith positions, and locations of Ascendant and Descendant lines.
1899
1900flag ChartAstroGraph(void)
1901{
1902 CrossInfo *rgcr, *pcr, crT;
1903 char sz[cchSzDef];
1904 real planet1[objMax], planet2[objMax], mc[objMax], ic[objMax],
1905 asc[objMax], des[objMax], asc1[objMax], des1[objMax], rgad[objMax],
1906 lo = Lon, longm, w, x, y, z, ww, xx, yy, zz, ad, oa, am, od;
1907 int cCross = 0, i, j, k, l, m, n, o;
1908 flag fEdge;
1909
1910 if (us.fLatitudeCross) {
1911 rgcr = RgAllocate(MAXCROSS, CrossInfo, "crossing table");
1912 if (rgcr == NULL)
1913 return fFalse;
1914 pcr = rgcr;
1915 }
1916
1917 // Calculate zenith location on Earth of each object.
1918
1919 for (i = 0; i <= is.nObj; i++) if (!ignore[i]) {
1920 planet1[i] = Tropical(planet[i]);
1921 planet2[i] = !us.fHouse3D ? planetalt[i] : 0.0;
1922 EclToEqu(&planet1[i], &planet2[i]);
1923 }
1924
1925 // Print header.
1926
1927 PrintSz("Object :");
1928 for (j = 0; j <= is.nObj; j++) {
1929 i = rgobjList[j];
1930 if (!ignore[i] && FThing2(i)) {
1931 AnsiColor(kObjA[i]);
1932 sprintf(sz, VSeconds(" %.3s", " %-10.10s", " %-14.14s"), szObjDisp[i]);
1933 PrintSz(sz);
1934 }
1935 }
1936 AnsiColor(kDefault);
1937 PrintSz("\n------ :");
1938 for (i = 0; i <= is.nObj; i++)
1939 if (!ignore[i] && FThing2(i)) {
1940 PrintCh(' ');
1941 PrintTab('#', VSeconds(3, 10, 14));
1942 }
1943
1944 // Print the longitude locations of the Midheaven lines.
1945
1946 PrintSz("\nMidheav: ");
1947 if (lo < 0.0)
1948 lo += rDegMax;
1949 for (j = 0; j <= is.nObj; j++) {
1950 i = rgobjList[j];
1951 if (!ignore[i] && FThing2(i)) {
1952 AnsiColor(kObjA[i]);
1953 x = cp0.lonMC - planet1[i];
1954 if (x < 0.0)
1955 x += rDegMax;
1956 if (x > rDegHalf)
1957 x -= rDegMax;

Callers 1

PrintChartFunction · 0.85

Calls 13

PrintSzFunction · 0.85
AnsiColorFunction · 0.85
PrintChFunction · 0.85
PrintTabFunction · 0.85
SzLocationFunction · 0.85
ModFunction · 0.85
MinDistanceFunction · 0.85
ExpSetRFunction · 0.85
ExpSetNFunction · 0.85
NParseExpressionFunction · 0.85
InterpretAstroGraphFunction · 0.85
DisplayAtlasNearbyFunction · 0.85

Tested by

no test coverage detected