def getOffset ( self , loc ) : return Location ( loc . x - self . x , loc . y - self . y )
python calculate offset coordinates star
Returns the offset between the given point and this point
def getOffset(self, loc):
        """ Returns the offset between the given point and this point """
        return Location(loc.x - self.x, loc.y - self.y)