Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Given 3 points, how to construct an arc that passes through them?

Tags:

c#

geometry

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:

  1. Start Radian
  2. End Radian
  3. Center Point

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.

like image 678
Graviton Avatar asked Nov 21 '25 20:11

Graviton


1 Answers

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.

like image 92
Ignacio Vazquez-Abrams Avatar answered Nov 23 '25 11:11

Ignacio Vazquez-Abrams



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!