[Python] Given 2 points on a circle and the angle between, how to find the center (in python)?

Discussão em 'Python' iniciado por Stack, Agosto 21, 2025.

  1. Stack

    Stack Membro Participativo

    I have 2 points on a circle and the angle between them and I would like to find the center of the circle that is thus defined (well, both centers preferably). [​IMG]

    def find_center(p1,p2,angle):
    # magic happens... What to do here?
    return (center_x, center_y)

    Continue reading...

Compartilhe esta Página