跳到主要内容

IDP.Math.KGeomLib.createArc2dByArcAngle() method

通过圆弧的圆心、半径、起始角度和圆弧角度来创建一段圆弧。

Create an arc by center, radius, start angle and arc angle.

Signature:

createArc2dByArcAngle(center: KPoint2d, radius: number, startAngle: number, arcAngle: number): KArc2d;

Links: createArc2dByArcAngle(center: KPoint2d, radius: number, startAngle: number, arcAngle: number): KArc2d;

Parameters

Parameter

Type

Description

center

KPoint2d

圆心。

The center point of the 2D arc.

radius

number

圆弧半径。

The radius of the 2D arc.

startAngle

number

圆弧的起始角度。

The start angle of the arc.

arcAngle

number

圆弧的角度。 正的圆弧角度值表示从圆弧起始角度沿逆时针方向转动这个角度为圆弧终点。 负的圆弧角度值表示从圆弧起始角度沿顺时针方向转动这个角度为圆弧终点。

The angle of the arc. If the angle is positive, it means the arc span is along the counter clockwise direction. If the angle is negative, it means the arc span is along the clockwise direction.

Returns:

KArc2d

二维圆弧。

The 2D arc.