def check_clockwise(vertices):
    """Checks whether a set of vertices wind in clockwise order

    Adapted from http://stackoverflow.com/questions/1165647/how-to-determine-if-a-list-of-polygon-points-are-in-clockwise-order

    Args:
        vertices (list): A list of [x,y] vertices

    Returns:
        bool indicating if the points wind in a clockwise order
    """
    tot = 0
    nv = len(vertices)
    i = nv - 1
    j = 0
    while j < nv:
        tot += (vertices[j][0] - vertices[i][0]) * (vertices[j][1] + vertices[i][1])
        i = j
        j += 1
    return tot > 0