IDP.Math.KGeomLib.createArc3dByStartEndAngles() method
通过圆弧的圆心、X轴、Y轴、半径、起始角度和终止角度来创建一段圆弧。
Create an arc by center, x direction, y direction, radius, start angle and end angle.
Signature:
createArc3dByStartEndAngles(center: KPoint3d, xDir: KVector3d, yDir: KVector3d, radius: number, startAngle: number, endAngle: number): KArc3d;
Links: createArc3dByStartEndAngles(center: KPoint3d, xDir: KVector3d, yDir: KVector3d, radius: number, startAngle: number, endAngle: number): KArc3d;
Parameters
Parameter | Type | Description |
---|---|---|
center | 圆心。 The center point of the 3D arc. | |
xDir | 圆弧局部标架的X轴方向。 X direction of the arc's local coordinate system, must be normalized. | |
yDir | 圆弧局部标架的Y轴方向。 Y direction of the arc's local coordinate system, must be normalized. | |
radius | number | 圆弧半径。 The radius of the 3D arc. |
startAngle | number | 圆弧的起始角度。 The start angle of the arc, will be clamped to [0, 2PI). |
endAngle | number | 圆弧的终止角度。 The end angle of the arc, will be clamped to [0, 2PI). |
Returns:
三维圆弧。
The 3D arc.