159
159
self.coordList = coordList
160
160
self.fontCoord = fontCoord
163
163
def pointCrossesEdge(self, x, y, xp1, yp1, sMouseX, sMouseY):
164
164
""" Checks whether a point, when scanning from top left crosses edge"""
167
167
(sMouseX < (xp1 - x) * (sMouseY - y) / (yp1 - y) + x))
170
170
def point_within_key(self, location, scale):
171
171
"""Checks whether point is within shape.
172
172
Currently does not bother trying to work out