KBoundingBox2d.isPointInside() method
检查输入点在指定容差下是否落在包围盒中。 注意:包围盒的区域范围包括包围盒边界。
Check whether the input point is in this bounding box with specified tolerance. NOTE: boundary is included.
Signature:
isPointInside(point: KPoint2d, tolerance?: number): boolean;
Links: isPointInside(point: KPoint2d, tolerance?: number): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
point | 输入点。 The input point. | |
tolerance | number | (Optional) 传入容差。 The specified tolerance. |
Returns:
boolean
当输入点落在包围盒中,返回true。
Return True if the input point is inside this box, otherwise return false.