How to find angle "a" on this shape?

zemoddd

New member
Joined
Jun 28, 2017
Messages
4
I am making a procedural road generation tool for computer graphics. But I am stuck on this problem. It seems simple but I couldn't figure out even after spending hours. Please help me.

I drew the problem on the attached picture. Points P0, P1, P2 are known, length of r is also known. I need to learn how to find degree of a.

The solution is needed for automatically filling roadways between 2 points. The connection part is a portion of circle.
 

Attachments

  • question.jpg
    question.jpg
    37 KB · Views: 2
Last edited:
I am making a procedural road generation tool for computer graphics. But I am stuck on this problem. It seems simple but I couldn't figure out even after spending hours. Please help me.

I drew the problem on the attached picture. Points P1, P2 are known, length of r is also known. I need to learn how to find degree of a.

The solution is needed for automatically filling roadways between 2 points. The connection part is a portion of circle.
attachment.php

If no other information is given, you cannot "calculate" the measure of "a".
 
Are you using an xy-coordinate system, to define the locations of P0, P1, and P2?
 
Top