Box

A Box represents a box in the 3D world.

In Particubes, a Box is always aligned with the world coordinate system.

Constructors

Box ( )

Creates a Number3 with values x, y and z.

-- creates a box with both min & max = {0,0,0}
local box = Box()

box = Box({0,0,0}, {10,10,10})

Functions

Box Copy ( Box b )

Returns a copy of the Box.

Properties

Box corner coordinates with bigger X,Y,Z components.

Box corner coordinates with smaller X,Y,Z components.