Let's say I have 3 consecutive points (P1,P2, P3), how to construct an Arc that passes through all 3 points?
The arc must have the following 3 properties:
The arc is drawn from Start Radian to End Radian in counter-clockwise manner.
I've tried with the solution here, but it doesn't work, simply because it assumes that P1 must correspond to Start Radian and P3 must correspond to end radian. But the reality is that this is not always valid.
Draw two lines between them, following the order you want the arc to take. Bisect both lines, coming up with their normals. The intersection of the normals is the center of the arc. Draw your arc from one endpoint to the other, with the given center.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With