如何计算半径,和弦长度,开始/终点,开始/末端角度(可能为负)计算弧中心
我正在创建一种算法来生成随机的插槽轨道/电路。我有所有的坐标可以正确定位轨道零件,但是找不到曲线的正确中心点。从我搜索的内容来看,我知道弧线可以具有两个可能的中心点。通过从电流中减去前部方向角来计算方向,如果结果>电流然后1 else -1。 坐标列表图像 绘图图像
I am creating an algorithm to generate random slot tracks/circuits. I have all the coordinates to position the track parts correctly but I can't find the correct center points of the curves for drawing. From what I searched I know that an arc can have two possible center points. The orientation is calculated by subtracting the previous part direction angle from the current, if result > current then 1 else -1.
List of coordinates image
Plot image
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论