aboutsummaryrefslogtreecommitdiffstats
path: root/Helpers/other_helpers.py
blob: 8b19ced69d069fd96575195497bd991334314495 (plain)
1
2
3
4
def mkline(x1, y1, x2, y2):
    m = (y2 - y1) / (x2 - x1)
    n = y1 - m * x1
    return m, n