MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / rotatePoint

Method rotatePoint

gui/qt/keypad/arrowkey.cpp:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 return 45 - 180 * M_1_PI * std::asin(2. * gap / bounds.width());
9}
10QPointF ArrowKey::rotatePoint(QPointF point, int offset) {
11 while (offset--) {
12 std::swap(point.rx() *= -1, point.ry());
13 }
14 return point;
15}
16
17ArrowKey::ArrowKey(KeyConfig &config, const QRect &outer, const QRect &inner,
18 int offset, const QString &labelText, qreal gap)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected