跳到主要内容

KGeomLoop2d.containsPoint() method

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

Check point is inside of geometry loop2d.

Signature:

containsPoint(point: KPoint2d, bIncludeOn?: boolean): boolean;

Links: containsPoint(point: KPoint2d, bIncludeOn?: boolean): boolean;

Parameters

Parameter

Type

Description

point

KPoint2d

被判断点。

The check point

bIncludeOn

boolean

(Optional) 是否考虑二维环的边界, 默认不考虑。 Whether to consider the case: input point is on the loop2d's boundary. True means the point is on the boundary of the loop2d is also be think in loop2d. Default value is false.

Returns:

boolean

返回输入点是否在二维环中。

Return true if the point is in loop2d.