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.
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
Last edited: