MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _pt_key

Function _pt_key

SLiCAP/schematic/canvas.py:85–86  ·  view source on GitHub ↗
(pt: QPointF)

Source from the content-addressed store, hash-verified

83# ── junction detection ────────────────────────────────────────────────────────
84
85def _pt_key(pt: QPointF) -> tuple[int, int]:
86 return (round(pt.x()), round(pt.y()))
87
88
89def _pt_on_segment(x: int, y: int, p1: QPointF, p2: QPointF) -> bool:

Callers 15

_on_wire_interiorFunction · 0.70
_find_junction_pointsFunction · 0.70
_interior_tapMethod · 0.70
_split_wire_atMethod · 0.70
_reconnect_after_moveMethod · 0.70
_sync_junctionsMethod · 0.70
_refresh_pin_markersMethod · 0.70
on_any_wireMethod · 0.70
mousePressEventMethod · 0.70
mouseMoveEventMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected