MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / azElToPoint

Method azElToPoint

Components/FrequencyCorrectionDialog.cpp:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31using namespace SigDigger;
32
33QPointF
34FrequencyCorrectionDialog::azElToPoint(xyz_t const &p)
35{
36 qreal z = .5 * M_PI - p.elevation; // Zenith distance
37 qreal k = 2 * this->azElAxesRadius / M_PI;
38
39 return QPointF(
40 this->azElCenterX - z * k * cos(-.5 * M_PI + p.azimuth),
41 this->azElCenterY + z * k * sin(-.5 * M_PI + p.azimuth));
42}
43
44void
45FrequencyCorrectionDialog::paintAzimuthElevationMap(QPixmap &pixmap)

Calls

no outgoing calls

Tested by

no test coverage detected