jeudi 22 juillet 2021

Get random vectors between the 3 vector plane

I would like to know how to get random vectors inside a triangle, but it seemed more difficult than I expected.

The plane would have coordinates like [a, b], [x, y], [u, v] (three points):

What I want to do

But I also wanted the chosen points not to be too close to each other:

what i want to avoid

Thanks for any help.




Aucun commentaire:

Enregistrer un commentaire