Define bounding rectangle of an array of points
<p>I have a set of points in an array. All points have x and y coordinates. How can I get the bounding rectangle of this set? The "rectangle" object should have properties like x, y, width, height. Any ideas?</p>
