4

Given a circle with a known center point and two points on the circle (thus known radius), how do I determine the angle of the minimum arc between the two points on the circle?

par
  • 17,361
  • 4
  • 65
  • 80

1 Answers1

6

Turn the center to the two points into a pair of vectors, then shove through this.

So, cos-1 ((x1x2 + y1y2 + z1z2) / r2).

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358