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