如何计算圆上两点之间的弧角? [英] How do I calculate arc angle between two points on a circle?
本文介绍了如何计算圆上两点之间的弧角?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
给出一个已知圆心且在圆上有两个点的圆(即已知半径),如何确定圆上两点之间的最小圆弧的角度?
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?
推荐答案
Turn the center to the two points into a pair of vectors, then shove through this.
因此,cos -1 (((x 1 x 2 + y 1 y 2 + z 1 z 2 )/r 2 ).
So, cos-1 ((x1x2 + y1y2 + z1z2) / r2).
这篇关于如何计算圆上两点之间的弧角?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文