跳到主要内容

IDP.Math.KGeomLib.createCircle2dByCenterAndPoint() method

通过圆心和圆上一点创建一个二维空间的圆。

Create a 2d circle by the origin of the circle and a point on the circle.

Signature:

createCircle2dByCenterAndPoint(center: KPoint2d, pointOnCircle: KPoint2d): KCircle2d | null;

Links: createCircle2dByCenterAndPoint(center: KPoint2d, pointOnCircle: KPoint2d): KCircle2d | null;

Parameters

Parameter

Type

Description

center

KPoint2d

圆心。

The origin of the circle.

pointOnCircle

KPoint2d

圆上一点。

A point on the circle.

Returns:

KCircle2d | null

返回一个圆,也可能是null(当两点重合时)。

The 2D circle or null if the two points overlap.