IDP.Math.KGeomLib.createArc2dByStartEndPoints() method
通过圆心、圆弧起点和末点来创建圆弧。
Create an arc by start and end points.
Signature:
createArc2dByStartEndPoints(center: KPoint2d, startPoint: KPoint2d, endPoint: KPoint2d, isCCW: boolean): KArc2d;
Links: createArc2dByStartEndPoints(center: KPoint2d, startPoint: KPoint2d, endPoint: KPoint2d, isCCW: boolean): KArc2d;
Parameters
Parameter | Type | Description |
---|---|---|
center | 圆心。 The center point of the 2D arc. | |
startPoint | 圆弧的起点,需要注意,该点需要在圆弧上。 The startPoint point of the 2D arc. The caller need to make sure it's on the arc. | |
endPoint | 圆弧的末点,需要注意,该点需要在圆弧上。 The end point of the 2D arc. The caller need to make sure it's on the arc. | |
isCCW | boolean | 圆弧是否是逆时针方向。 如果圆弧是逆时针方向,则表示圆弧是圆上从起点开始沿逆时针方向到达终点的那一段圆,反之则表示圆上另外一侧的一段。 Whether the 2d arc is counter clockwise from startPoint to endPoint. True means the counter clockwise segment of the circle from startPoint to endPoint. False means the clockwise segment of the circle from startPoint to endPoint. |
Returns:
二维圆弧。
The 2D arc.