代码编织梦想

A circular arc is the arc of a circle between a pair of distinct points. If the two points are not directly opposite each other, one of these arcs, the minor arc, will subtend an angle at the centre of the circle that is less than π radians (180 degrees), and the other arc, the major arc, will subtend an angle greater than π radians.The arc of a circle is defined as the part or segment of the circumference of a circle. A straight line that could be drawn by connecting the two ends of the arc is known as a chord of a circle. If the length of an arc is exactly half of the circle, it is known as a semicircular arc.

在这里插入图片描述

A circular sector is shaded in green. Its curved boundary of length L is a circular arc.

1 Length

See also: Arc length § Arcs of circles
The length (more precisely, arc length) of an arc of a circle with radius r and subtending an angle θ (measured in radians) with the circle center — i.e., the central angle — is

{\displaystyle L=\theta r.}{\displaystyle L=\theta r.}
This is because

{\displaystyle {\frac {L}{\mathrm {circumference} }}={\frac {\theta }{2\pi }}.}{\displaystyle {\frac {L}{\mathrm {circumference} }}={\frac {\theta }{2\pi }}.}
Substituting in the circumference

{\displaystyle {\frac {L}{2\pi r}}={\frac {\theta }{2\pi }},}{\displaystyle {\frac {L}{2\pi r}}={\frac {\theta }{2\pi }},}
and, with α being the same angle measured in degrees, since θ =
α
/
180
π, the arc length equals

{\displaystyle L={\frac {\alpha \pi r}{180}}.}{\displaystyle L={\frac {\alpha \pi r}{180}}.}
A practical way to determine the length of an arc in a circle is to plot two lines from the arc’s endpoints to the center of the circle, measure the angle where the two lines meet the center, then solve for L by cross-multiplying the statement:

measure of angle in degrees/360° = L/circumference.
For example, if the measure of the angle is 60 degrees and the circumference is 24 inches, then

{\displaystyle {\begin{aligned}{\frac {60}{360}}&={\frac {L}{24}}\[6pt]360L&=1440\[6pt]L&=4.\end{aligned}}}{\displaystyle {\begin{aligned}{\frac {60}{360}}&={\frac {L}{24}}\[6pt]360L&=1440\[6pt]L&=4.\end{aligned}}}
This is so because the circumference of a circle and the degrees of a circle, of which there are always 360, are directly proportional.

The upper half of a circle can be parameterized as

{\displaystyle y={\sqrt {r{2}-x{2}}}.}{\displaystyle y={\sqrt {r{2}-x{2}}}.}
Then the arc length from {\displaystyle x=a}x=a to {\displaystyle x=b}{\displaystyle x=b} is

{\displaystyle L=r{\Big [}\arcsin \left({\frac {x}{r}}\right){\Big ]}{a}^{b}.}{\displaystyle L=r{\Big [}\arcsin \left({\frac {x}{r}}\right){\Big ]}{a}^{b}.}

2 Sector area

Main article: Circular sector § Area
The area of the sector formed by an arc and the center of a circle (bounded by the arc and the two radii drawn to its endpoints) is

{\displaystyle A={\frac {r^{2}\theta }{2}}.}{\displaystyle A={\frac {r^{2}\theta }{2}}.}
The area A has the same proportion to the circle area as the angle θ to a full circle:

{\displaystyle {\frac {A}{\pi r^{2}}}={\frac {\theta }{2\pi }}.}\frac{A}{\pi r^2}=\frac{\theta}{2\pi}.
We can cancel π on both sides:

{\displaystyle {\frac {A}{r^{2}}}={\frac {\theta }{2}}.}\frac{A}{r^2}=\frac{\theta}{2}.
By multiplying both sides by r2, we get the final result:

{\displaystyle A={\frac {1}{2}}r^{2}\theta .}A=\frac{1}{2} r^2 \theta.
Using the conversion described above, we find that the area of the sector for a central angle measured in degrees is

{\displaystyle A={\frac {\alpha }{360}}\pi r^{2}.}A=\frac{\alpha}{360} \pi r^2.

3 Segment area

The area of the shape bounded by the arc and the straight line between its two end points is

{\displaystyle {\frac {1}{2}}r^{2}(\theta -\sin \theta ).}{\displaystyle {\frac {1}{2}}r^{2}(\theta -\sin \theta ).}
To get the area of the arc segment, we need to subtract the area of the triangle, determined by the circle’s center and the two end points of the arc, from the area {\displaystyle A}A. See Circular segment for details.

4 Radius

Using the intersecting chords theorem (also known as power of a point or secant tangent theorem) it is possible to calculate the radius r of a circle given the height H and the width W of an arc:

Consider the chord with the same endpoints as the arc. Its perpendicular bisector is another chord, which is a diameter of the circle. The length of the first chord is W, and it is divided by the bisector into two equal halves, each with length
W
/
2
. The total length of the diameter is 2r, and it is divided into two parts by the first chord. The length of one part is the sagitta of the arc, H, and the other part is the remainder of the diameter, with length 2r − H. Applying the intersecting chords theorem to these two chords produces

{\displaystyle H(2r-H)=\left({\frac {W}{2}}\right)^{2},}{\displaystyle H(2r-H)=\left({\frac {W}{2}}\right)^{2},}
whence

{\displaystyle 2r-H={\frac {W^{2}}{4H}},}{\displaystyle 2r-H={\frac {W^{2}}{4H}},}
so

{\displaystyle r={\frac {W^{2}}{8H}}+{\frac {H}{2}}.}{\displaystyle r={\frac {W^{2}}{8H}}+{\frac {H}{2}}.}

在这里插入图片描述

The product of the line segments AP and PB equals the product of the line segments CP and PD. If the arc has a width AB and height CP, then the circle’s diameter {\displaystyle CD={\frac {AP\cdot PB}{CP}}+CP}{\displaystyle CD={\frac {AP\cdot PB}{CP}}+CP}

5 See also

Biarc
Circle of a sphere
Circular-arc graph
Lemon (geometry)
Meridian arc
Circumference

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_66485519/article/details/128013709

drawcircle、drawarc-爱代码爱编程

drawCircle(float cx, float cy, float radius, Paint paint) 画一个圆:前两个坐标分别是圆心坐标,第三个是半径,第四个画笔 drawArc(RectF oval,

开源项目circular-progress-button源码解析-爱代码爱编程

Android值Drawable系列:    一起来说说那些你不知道的Drawable:http://blog.csdn.net/mr_dsw/article/details/50998681 Android实践之Drawable的使用:http://blog.csdn.net/mr_dsw/article/details/50999818 开

arcengine 将圆形、矩形转换为多边形 ;icirculararc、ienvelope转化为ipolygon_kone666的博客-爱代码爱编程

1、将ICircularArc转化为IPolygon 1: ICircularArc pCircularArc = null; 2: IRubberBand pRubberBand = new RubberCircleClass(); 3: pCircularArc = pRubberBand.TrackNew(axMapCon

hdu6279 circular coloring_orzqqqqqqq的博客-爱代码爱编程

Circular Coloring Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 132768/132768 K (Java/Others)Total Submission(s): 28    Accepted Submission(s): 10 Problem Descriptio

c++画圆算法algorithm drawcircle-爱代码爱编程

原算法引用地址 http://slabode.exofire.net/circle_draw.shtml 这里是用点来分割画出圆, num_segments 是点的个数 这里theta =360/num_segments

【计算机图形学】 圆的两种生成算法(角度微分法、Bresenham算法)-爱代码爱编程

圆的两种生成算法(角度微分法、Bresenham算法) 文章目录 1.角度微分法的原理2.角度微分法的实现(基于matlab)3.Bresenham 算法的原理4.Bresenham 算法的实现(基于matlab) 1.角度微分法的原理 圆的角度微分法是用圆的内接正多边形来逼近该圆。 若我们设圆的参数方程为: 其中𝜑为旋转角,0° ≤ φ

haocon找圆_基于Halcon圆拟合提取学习-爱代码爱编程

1.本文主要围绕Halcon圆拟合提取的学习心得总结,主要围绕halcon算子shape_trans,small_circle,fit_circle_contour_xld,hough_circles,add_metrology_object_circle_measure展开 2.Shape_trans 该算子检测图像变换区域中被广泛应用; Si

html画布arc,绘制弧线将线性渐变html5画布(Draw arc will linear gradient html5 canvas)-爱代码爱编程

绘制弧线将线性渐变html5画布(Draw arc will linear gradient html5 canvas) I have a circular arc drawn in canvas is it possible to give it linear gradient with three colors?? 原文:https://sta

Qt绘制Wifi图标-爱代码爱编程

效果图 #头文件 #ifndef WIFIICON_H #define WIFIICON_H #include <QWidget> class QTimer; class WifiIcon : public QWidget { Q_OBJECT public: explicit WifiIcon(QWidget *pare

2021APMCM赛后总结——边缘检测-爱代码爱编程

APMCM被称为小美赛,和美赛一样使用英文提交论文,比赛时间又在国赛后美赛前,因此很适合作为MCM的热身赛。 第一次参加这种正规比赛,而且是英文写作,作为对美赛的预热,花四天时间提前演练一下是很有必要的。在日常上课和(几乎)按时休息的条件下,最终,我们队能够拿到二等奖,算是比较满意了。 赛前准备 APMCM四天时间,而期间有部分期中考试,因此对时间的把

arc basics 1_tuoku8.life-爱代码爱编程

Rules and Conventions for Using ARC As mentioned, ARC greatly simplifies memory management with respect to the MRR method. As a result, there are different sets of rules for ob