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

Function SphToRec

calc.cpp:831–839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

829// Transform spherical to rectangular coordinates in x, y, z.
830
831void SphToRec(real r, real azi, real alt, real *rx, real *ry, real *rz)
832{
833 real rT;
834
835 *rz = r *RSinD(alt);
836 rT = r *RCosD(alt);
837 *rx = rT*RCosD(azi);
838 *ry = rT*RSinD(azi);
839}
840
841
842// Convert 3D rectangular to spherical coordinates.

Callers 9

NProcessSwitchesRareFunction · 0.85
SphRatioFunction · 0.85
ComputeStarsFunction · 0.85
ComputeEphemFunction · 0.85
CastChartFunction · 0.85
NCheckEclipseSolarLocFunction · 0.85
SwissComputeStarsFunction · 0.85
SwissComputeStarFunction · 0.85
SwissComputeAsteroidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected