跳到主要内容

KBoundingBox2d.expand() method

包围盒的范围各向扩大一个Δ。 注意:如何Δ是一个负数,则包围盒的控制范围会减小,甚至会反转。

Expand the bounding box by a delta value. NOTE: if delta is a minus value, bounding box will be shrunk or even be reversed.

Signature:

expand(delta: number): void;

Parameters

Parameter

Type

Description

delta

number

扩张参数。

The expanded coefficient.

Returns:

void