Round a scene point to the nearest integer grid key.
(p: QPointF)
| 6 | |
| 7 | |
| 8 | def _rpt(p: QPointF) -> tuple[int, int]: |
| 9 | """Round a scene point to the nearest integer grid key.""" |
| 10 | return (round(p.x()), round(p.y())) |
| 11 | |
| 12 | |
| 13 | def _on_segment(p1: QPointF, p2: QPointF, q: QPointF) -> bool: |
no outgoing calls
no test coverage detected