[Python] Sample uniformly random points within a triangle

Discussão em 'Python' iniciado por Stack, Setembro 11, 2025.

  1. Stack

    Stack Membro Participativo

    I would like to know how to get random vectors inside a triangle, in python, but it seemed more difficult than I expected. The plane would have coordinates like [a, b], [x, y], [u, v] (three points):

    [​IMG]

    Continue reading...

Compartilhe esta Página