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

Function PolToRec

matrix.cpp:247–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245// Convert polar to rectangular coordinates.
246
247void PolToRec(real a, real r, real *x, real *y)
248{
249 if (a == 0.0)
250 a = rSmall;
251 *x = r*RCos(a);
252 *y = r*RSin(a);
253}
254
255
256// Convert rectangular to spherical coordinates.

Callers 2

RecToSphFunction · 0.85
RecToSph2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected