开发者

How do I calculate arc angle between two points on a circle?

开发者 https://www.devze.com 2023-01-02 11:33 出处:网络
Given a circle with a known center point and two points on the circle (开发者_如何学Cthus known radius), how do I determine the angle of the minimum arc between the two points on the circle?Turn the c

Given a circle with a known center point and two points on the circle (开发者_如何学Cthus known radius), how do I determine the angle of the minimum arc between the two points on the circle?


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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号