def left_of_edge(point, ep1, ep2):
    """Determine if point is left of infinite line touching ep1 and ep2"""
    return ((ep1[0]-point[0])*(ep2[1]-point[1]) -
            (ep2[0]-point[0])*(ep1[1]-point[1])) < 0