How to calculate the angle of an arc between two points on a circle?

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

+4
source share
1 answer

Rotate the center two points into a pair of vectors, then go through this .

So cos -1 ((x 1 x 2 + y 1 y 2 + z 1 z 2 ) / r 2 ).

+6
source

Source: https://habr.com/ru/post/1312153/


All Articles