(line)
return _compute_angle(point1, point2)
If the latutide of a point is less and the longitude is more, or
    If the latitude of a point is more and the longitude is less, then
    the point is oriented leftward and wil have negative orientation.
If the latutide of a point is less and the longitude is more, or
    If the latitude of a point is more and the longitude is less, then
    the point is oriented leftward and wil have negative orientation.
If the latutide of a point is less and the longitude is more or If the latitude of a point is more and the longitude is less then the point is oriented leftward and wil have negative orientation .
def _compute_orientation(line):
    point1 = line[1]
    point2 = line[0]
    """
    If the latutide of a point is less and the longitude is more, or
    If the latitude of a point is more and the longitude is less, then
    the point is oriented leftward and wil have negative orientation.
    """
    if ((point2[0] > point1[0]) and (point2[1] < point1[1])) or (
        (point2[0] < point1[0]) and (point2[1] > point1[1])
    ):
        return -_compute_angle(point1, point2)
    # if the latitudes are same, the line is horizontal
    elif point2[1] == point1[1]:
        return 0
    # if the longitudes are same, the line is vertical
    elif point2[0] == point1[0]:
        return 90
    return _compute_angle(point1, point2)
def _compute_orientation ( line ) : point1 = line [ 1 ] point2 = line [ 0 ] if ( ( point2 [ 0 ] > point1 [ 0 ] ) and ( point2 [ 1 ] < point1 [ 1 ] ) ) or ( ( point2 [ 0 ] < point1 [ 0 ] ) and ( point2 [ 1 ] > point1 [ 1 ] ) ) : return - _compute_angle ( point1 , point2 ) # if the latitudes are same, the line is horizontal elif point2 [ 1 ] == point1 [ 1 ] : return 0 # if the longitudes are same, the line is vertical elif point2 [ 0 ] == point1 [ 0 ] : return 90 return _compute_angle ( point1 , point2 )