跳到主要内容

IDP.Math.KGeomLib.createGeomLoop2dByPoints() method

通过点集合来创建二维loop。loop将只含线段。

Create a loop2d by points, the result loop contains only line segments.

Signature:

createGeomLoop2dByPoints(points: KPoint2d[]): KGeomLoop2d;

Links: createGeomLoop2dByPoints(points: KPoint2d[]): KGeomLoop2d;

Parameters

Parameter

Type

Description

points

KPoint2d[]

环的顶点集合。

The vertex points of the loop.

Returns:

KGeomLoop2d

返回二维环对象。

Return a loop2d object.