sub

fun Box.sub(uvw: Box): Box(source)

Creates a sub-box from the current box using the dimensions defined by another box.

Parameters

uvw

The box defining the dimensions (relative to this box) to create the sub-box. Its position and size are used to compute the resulting sub-box.


fun Rectangle.sub(uv: Rectangle): Rectangle(source)

Creates a sub-rectangle from the current rectangle using the dimensions defined by another rectangle.

Parameters

uv

The rectangle defining the dimensions (relative to this rectangle) to create the sub-rectangle. Its position and size are used to compute the resulting sub-rectangle.