Box

fun Box(x: Double, y: Double, z: Double, width: Double, height: Double = width, depth: Double = width): Box(source)

Creates a Box instance using the specified position and dimensions.

Parameters

x

The x-coordinate of the box's position.

y

The y-coordinate of the box's position.

z

The z-coordinate of the box's position.

width

The width of the box.

height

The height of the box. Defaults to the value of width.

depth

The depth of the box. Defaults to the value of width.