ccw_sort#

random_shapes.ccw_sort(p: ndarray) ndarray[source]#

Sort points in counter-clockwise order.

Parameters:

p (np.ndarray) – An array of points of shape (n, 2).

Returns:

An array of points sorted in counter-clockwise order of shape (n, 2).

Return type:

np.ndarray