def closestPoint(self, p):
        """
        Return the point on the line that is closest to point p
        """
        t0 = self.M.dot(self.M) / self.M.dot(p - self.B)
        if t0 <= 0:
            return self.B
        elif t0 >= 1:
            return self.B + self.M
        else:
            return self.B + t0 * self.M
dataset/ETHPy150Open rll/lfd/lfd/rapprentice/util.py/LineSeg.closestPoint/swapped operands of `/`