points_from_numpy#

random_shapes.points_from_numpy(points: ndarray) list[Point][source]#

Convert a numpy array to a list of points.

Parameters:

points (np.ndarray) – A numpy array of shape (n, 2).

Returns:

A list of points.

Return type:

list[Point]