考虑到3分,如何构建穿过他们一个弧? [英] Given 3 Points, How to Construct An Arc that Passes Through Them?

查看:97
本文介绍了考虑到3分,如何构建穿过他们一个弧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们说我有连续3个点( P1 P2 P3 ),如何构建,通过全取3分经过圆弧

Let's say I have 3 consecutive points (P1,P2, P3), how to construct an Arc that passes through all 3 points?

电弧必须具备以下3个属性:

The arc must have the following 3 properties:


  1. 开始弧度

  2. 结束弧度

  3. 中心点

弧从开始弧度吸引到结束弧度逆时针的方式。

The arc is drawn from Start Radian to End Radian in counter-clockwise manner.

我试着解决方案的这里,但它不工作,只是因为它假定 P1 必须对应于开始弧度 P3 必须对应于结束弧度。但现实是,这并不总是有效。

I've tried with the solution here, but it doesn't work, simply because it assumes that P1 must correspond to Start Radian and P3 must correspond to end radian. But the reality is that this is not always valid.

推荐答案

绘制它们之间的两条线,下面你想要的圆弧采取的顺序。双方平分线,未来与他们的法线。法线的交点是弧的中心。从一个端点画出你圆弧给对方,以给定的中心。

Draw two lines between them, following the order you want the arc to take. Bisect both lines, coming up with their normals. The intersection of the normals is the center of the arc. Draw your arc from one endpoint to the other, with the given center.

这篇关于考虑到3分,如何构建穿过他们一个弧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆