如何计算半径,和弦长度,开始/终点,开始/末端角度(可能为负)计算弧中心

发布于 2025-02-11 07:45:03 字数 327 浏览 1 评论 0原文

我正在创建一种算法来生成随机的插槽轨道/电路。我有所有的坐标可以正确定位轨道零件,但是找不到曲线的正确中心点。从我搜索的内容来看,我知道弧线可以具有两个可能的中心点。通过从电流中减去前部方向角来计算方向,如果结果>电流然后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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文