Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 3 个点,这将定义一个弧。 我想将 Arc 转换为 Polyline。
我怎样才能实现这是c#?
感谢先进
找到圆心和半径(如果未知),确定开始和结束(或扫掠)角度(用atan2)并在 N+1 点之间制作一系列线段(其中 N 是线段数)
atan2
cx + r * cos(startangle + i / N * sweepangle) cy + r * sin(startangle + i / N * sweepangle)