function box2points(x, y, width, height){
	return {
		minPoint: point(x, y),
		maxPoint: point(x + width, y + height)
	};
}
/** Given a box, find it's min and max points.
@param {Number} x - The x coordinate of the upper left point.
@param {Number} y - The y coordinate of the upper left point.
@param {Number} width - The length on the x-axis of the box.
@param {Number} height - The length on the y-axis of the box.
@return {Object} An object containing minPoint and maxPoint.
*/
Given a box, find it's min and max points.
Given a box find it ' s min and max points .
function box2points(x, y, width, height){
	return {
		minPoint: point(x, y),
		maxPoint: point(x + width, y + height)
	};
}
function box2points ( x , y , width , height ) { return { minPoint : point ( x , y ) , maxPoint : point ( x + width , y + height ) } ; }
Given a box, find it's min and max points.
Given a box find it ' s min and max points .