def get_slope_intercept(point1 , point2):
    """

    :param point1: lower point of the line
    :param point2:  higher point of the line
    :return: slope and intercept of this line
    """
    slope = (point1[1] - point2[1]) / (point1[0] - point2[0])  # slope = ( y2-y1 ) / ( x2-x1 ) .
    intercept = point1[1] - slope * point1[0]  # y = m*x + b
    return slope , intercept