The getBounds() function can be used to retrieve the bounding box of an object, returning an array with two points specifying the minimum and maximum coordinates, i.e. X, Y, Z values.
Contribute
Quick Reference
User Guide
Design Guide
Math Functions