IDP.Math.KGeomLib.createEllipticalArc2dByStartEndPoints() method
通过椭圆心、椭圆长轴方向、椭圆长轴半径、椭圆短轴半径、圆弧起点和末点来创建圆弧。
Create an elliptical arc by center, x direction, major radius, minor radius, start and end points.
Signature:
createEllipticalArc2dByStartEndPoints(center: KPoint2d, xDirection: KVector2d, majorRadius: number, minorRadius: number, startPoint: KPoint2d, endPoint: KPoint2d, isCCW: boolean): KEllipticalArc2d;
Links: createEllipticalArc2dByStartEndPoints(center: KPoint2d, xDirection: KVector2d, majorRadius: number, minorRadius: number, startPoint: KPoint2d, endPoint: KPoint2d, isCCW: boolean): KEllipticalArc2d;
Parameters
Parameter | Type | Description |
---|---|---|
center | 椭圆圆心。 The center point of the 2D elliptical arc. | |
xDirection | 椭圆长轴方向(X 方向)。 X direction of the 2D elliptical arc. | |
majorRadius | number | 椭圆长轴半径。 Major radius of the elliptical arc. |
minorRadius | number | 椭圆短轴半径。 Minor radius of the elliptical arc. |
startPoint | 椭圆弧的起点,需要注意,该点需要在圆弧上。 The start 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.