Box.scaled

Box.scaled(x, y=None, z=None)[source]

Returns a scaled copy of the box.

Parameters:
xfloat

The scaling factor in the x-direction.

yfloat, optional

The scaling factor in the y-direction. Defaults to x.

zfloat, optional

The scaling factor in the z-direction. Defaults to x.