KGeomLoop2d interface
二维环的接口类。
The interface of a geometry loop 2d.
Signature:
export interface KGeomLoop2d
Methods
Method | Description |
---|---|
获得二维环的面积。 The area of the loop2d. | |
获得二维环的质心。 The centroid of the loop2d. | |
检查传入点是否在二维环中。 Check point is inside of geometry loop2d. | |
获得二维环的所有轮廓线数组。 The curves of a loop2d. | |
判断该二维环是否为逆时针。 Whether the loop is counter-clockwise. | |
该环是否自相交。 Whether the loop is self-intersect. | |
检查该二维环是否有效:是否自相交, 是否封闭,轮廓线是否一个一个首尾向量。 Whether the loop is valid: - no self-intersection, - closed, - connected one by one and tail to head. |