# Io Reference

Graphics / OpenGL / Box

|  | A primitive for fast operations on rectangles.

Union(aBox)

Returns a new box containing the 2d union of the receiver and aBox.
containsPoint(aPoint)

Returns true if aPoint is within the receiver's bounds, false otherwise.
copy(aBox)

Copies the values of aBox to the receiver.
depth

Same as; size z
height

Same as; size y
intersectsBox(aBox)

Returns true if aBox is within the receiver's bounds, false otherwise.
origin

Returns the point object for the origin of the box.
print

Prints a string representation of the receiver to the standard output.
set(origin, size)

Copies the values in origin and size to set the box's origin and size.
setOrigin(aPoint)

Copies the values in aPoint to the box's origin point.
setSize(aPoint)

Copies the values in aPoint to the box's size point.
size

Returns the point object for the size of the box.
width

Same as; size x