contract

Contracts this bounding box by the given x, y, and z amounts and returns the result.

This is the opposite of an expansion. If any of the values are negative, the minimum value will be decreased on the respective axis, otherwise the maximum value will be decreased.

Return

the resulting box

Parameters

x

the X amount to contract by

y

the Y amount to contract by

z

the Z amount to contract by


fun contract(amount: Vec3d): BoundingBox

Contracts this bounding box by the given amount and returns the result.

Return

the resulting box

Parameters

amount

the amount to contract by