IDP.Math.KGeomLib.createArc2dByStartEndAngles() method
通过圆弧的圆心、半径、起始角度和终止角度来创建一段圆弧。
Create an arc by center, radius, start angle and end angle.
Signature:
createArc2dByStartEndAngles(center: KPoint2d, radius: number, startAngle: number, endAngle: number, isCCW: boolean): KArc2d;
Links: createArc2dByStartEndAngles(center: KPoint2d, radius: number, startAngle: number, endAngle: number, isCCW: boolean): KArc2d;
Parameters
Parameter | Type | Description |
---|---|---|
center | 圆心。 The center point of the 2D arc. | |
radius | number | 圆弧半径。 The radius of the 2D arc. |
startAngle | number | 圆弧的起始角度。 The start angle of the arc. |
endAngle | number | 圆弧的终止角度。 The end angle of the arc. |
isCCW | boolean | 圆弧是否是逆时针方向。 如果圆弧是逆时针方向,则表示圆弧是圆上从起始角开始沿逆时针方向到达终止角的那一段圆,反之则表示圆上另外一侧的一段。 Whether the 2d arc is counter clockwise from startAngle to endAngle. True means the counter clockwise segment of the circle from startAngle to endAngle. False means the clockwise segment of the circle from startAngle to endAngle. |
Returns:
二维圆弧。
The 2D arc.