跳到主要内容

IDP.Math.KGeomLib.createCircle3dByCenterNormalRadius() method

通过圆心、半径和法向来创建圆。 注意:创建的圆围绕着·法向时逆时针的。

Create an circle by center, normal, radius. NOTE: the created arc is always counter-clockwise around the normal.

Signature:

createCircle3dByCenterNormalRadius(center: KPoint3d, normal: KVector3d, radius: number, xDir?: KVector3d): KCircle3d;

Links: createCircle3dByCenterNormalRadius(center: KPoint3d, normal: KVector3d, radius: number, xDir?: KVector3d): KCircle3d;

Parameters

Parameter

Type

Description

center

KPoint3d

圆心。

The center point of the 3D circle.

normal

KVector3d

法向。

The normal of the 3D circle.

radius

number

半径。

The radius of the 3D circle.

xDir

KVector3d

(Optional) 圆的X轴方向(可选参数)。

The X direction of the local coordinate system of the circle.

Returns:

KCircle3d

圆。

The 3D circle.