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

Function RAngle

general.cpp:242–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240// polar coordinates, however this doesn't involve the radius here.
241
242real RAngle(real x, real y)
243{
244 real a;
245
246 if (x != 0.0) {
247 if (y != 0.0)
248 a = RAtn(y/x);
249 else
250 a = x < 0.0 ? rPi : 0.0;
251 } else
252 a = y < 0.0 ? -rPiHalf : rPiHalf;
253 if (a < 0.0)
254 a += rPi;
255 if (y < 0.0)
256 a += rPi;
257 return a;
258}
259
260
261// Like RAngle() but return the angle between two 3D vectors instead.

Callers 8

FEvalFunctionFunction · 0.85
CuspAscendantFunction · 0.85
CuspEastPointFunction · 0.85
HouseKochFunction · 0.85
HouseCampanusFunction · 0.85
RecToPolFunction · 0.85
CoorXformFunction · 0.85
CoorXformFastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected