IDP.Math.KGeomLib.createArc2dByPointsAndStartTangent() method
通过圆弧起点、终点以及起点切向来创建圆弧。
Create an arc by start point, end point and tangent at start point.
Signature:
createArc2dByPointsAndStartTangent(start: KPoint2d, end: KPoint2d, startTangent: KVector2d, cosTol?: number): KArc2d | null;
Links: createArc2dByPointsAndStartTangent(start: KPoint2d, end: KPoint2d, startTangent: KVector2d, cosTol?: number): KArc2d | null;
Parameters
Parameter | Type | Description |
---|---|---|
start | 圆弧起点。 The start point of the 2d arc. | |
end | 圆弧终点。 The end point of the 2d arc. | |
startTangent | 圆弧起点的切向量(单位向量)。 切向量的方向决定了圆弧是逆时针的还是顺时针的。 The tangent at the start point of the 2d arc. The direction of the tangent determines whether the arc is counter clockwise or clockwise. | |
cosTol | number | (Optional) 可选参数,用于判断切向量和起点终点之间的连线方向是否平行的容差。如果平行,则返回空。 The cosin angle tolerance to check whether the tangent is parallel to the direction from start point to end point. If it is parallel, return null. |
Returns:
KArc2d | null
圆弧。
The 2d arc.