/usr/share/sikuli/Lib/sikuli/Helper.py is in libsikuli-script-java 1.0~x~rc3.tesseract3-dfsg1-7ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | # Copyright 2010-2011, Sikuli.org
# Released under the MIT License.
from math import sqrt
def byDistanceTo(m):
return lambda a,b: sqrt((a.x-m.x)**2+(a.y-m.y)**2) - sqrt((b.x-m.x)**2+(b.y-m.y)**2)
def byX(m):
return m.x
def byY(m):
return m.y
|