def pointOnLine(self, p, eps):
        """
        Return true if p is within eps of the line
        """
        dist = abs(p.x*self.nx + p.y*self.ny - self.off)
        return dist < eps
dataset/ETHPy150Open rll/lfd/lfd/rapprentice/util.py/LineXY.pointOnLine/original