跳到主要内容

KGeomLoop2d interface

二维环的接口类。

The interface of a geometry loop 2d.

Signature:

export interface KGeomLoop2d 

Methods

Method

Description

area()

获得二维环的面积。

The area of the loop2d.

centroid()

获得二维环的质心。

The centroid of the loop2d.

containsPoint(point, bIncludeOn)

检查传入点是否在二维环中。

Check point is inside of geometry loop2d.

getCurves()

获得二维环的所有轮廓线数组。

The curves of a loop2d.

isCCW()

判断该二维环是否为逆时针。

Whether the loop is counter-clockwise.

isSelfIntersect()

该环是否自相交。

Whether the loop is self-intersect.

isValid()

检查该二维环是否有效:是否自相交, 是否封闭,轮廓线是否一个一个首尾向量。 Whether the loop is valid: - no self-intersection, - closed, - connected one by one and tail to head.