def is_clockwise(points):
    a = 0
    i, j = 0, 0
    for i in range(len(points)):
        j = i + 1
        if j == len(points): j = 0
        a += points[i][X]*points[j][Y] - points[i][Y]*points[j][X]
    return a <= 0 #or is it the other way around?
Create a DeviceRecord or DeviceArray like obj and optionally copy data from
dataset/ETHPy150Open estevaofon/angry-birds-python/pymunk-4.0.0/pymunk/util.py/is_clockwise--crossover with--dataset/ETHPy150Open numba/numba/numba/cuda/cudadrv/devicearray.py/auto_device