Random points in "points" list. Like this : [x,y] = ([3,4],[2,5],[0,7],[8,1]) .
But i need to do these process ;
-
First one , i have to sort points in list like lower Y and lower X as a point double.(For example [1,2],[1,3]) .
-
Second one, how can i do action in list like this ; (Y0-Y1 / X0-X1) .
Here is my codes ;
import numpy as np
points = np.random.randint(0, 9, size=(18,2))
print(points)
Aucun commentaire:
Enregistrer un commentaire