跳到主要内容

IDP.Math.KGeomLib.createCircle2dByThreePoints() method

通过三点来创建一圆。

Create an circle by input three points.

Signature:

createCircle2dByThreePoints(startPoint: KPoint2d, midPoint: KPoint2d, endPoint: KPoint2d): KCircle2d | null;

Links: createCircle2dByThreePoints(startPoint: KPoint2d, midPoint: KPoint2d, endPoint: KPoint2d): KCircle2d | null;

Parameters

Parameter

Type

Description

startPoint

KPoint2d

圆上第一个点。

The start point of the 2D circle.

midPoint

KPoint2d

圆上第二个点。

The middle point of the 2D circle.

endPoint

KPoint2d

圆上第三个点。

The end point of the 2D circle.

Returns:

KCircle2d | null

返回一个圆,也可能是null(当三点共线时)。

The 2D circle or null (if the three points are colinear).