MCPcopy Index your code
hub / github.com/PyQt5/PyQt / getDistance

Function getDistance

QPropertyAnimation/RlatticeEffect.py:43–44  ·  view source on GitHub ↗
(p1, p2)

Source from the content-addressed store, hash-verified

41 import math
42
43 def getDistance(p1, p2):
44 return math.pow(p1.x - p2.x, 2) + math.pow(p1.y - p2.y, 2)
45
46 def findClose(points):
47 plen = len(points)

Callers 2

findCloseFunction · 0.70
animateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected