| 5 | #include <cmath> |
| 6 | |
| 7 | qreal ArrowKey::computeAngle(const QRect &bounds, int gap) { |
| 8 | return 45 - 180 * M_1_PI * std::asin(2. * gap / bounds.width()); |
| 9 | } |
| 10 | QPointF ArrowKey::rotatePoint(QPointF point, int offset) { |
| 11 | while (offset--) { |
| 12 | std::swap(point.rx() *= -1, point.ry()); |
nothing calls this directly
no outgoing calls
no test coverage detected