17 return qAtan2(b.
y() - a.
y(), b.
x() - a.
x());
28 inline qreal map(qreal x, qreal inputMin, qreal inputMax, qreal outputMin, qreal outputMax)
30 qreal slope = (outputMax - outputMin) / (inputMax - inputMin);
31 return outputMin + slope * (x - inputMin);
40 inline qreal normalize(qreal x, qreal min, qreal max)
42 return qAbs((x - max) / (min - max));