def _getClockwise(points):
    # quickly make segments
    segments = zip(points, points[1:] + [points[0]])
    # get the area
    area = sum([x0 * y1 - x1 * y0 for ((x0, y0), (x1, y1)) in segments])
    return area <= 0

# ----------
# Misc. Math
# ----------
Return a count of all elements with 'key' equal to 'value' in the index.
dataset/ETHPy150Open typesupply/defcon/Lib/defcon/tools/booleanOperations/flatten.py/_getClockwise--crossover with--dataset/ETHPy150Open espeed/bulbs/bulbs/rexster/index.py/Index.count