The purpose of this class is to pack several Rectangles into a big map, while trying to fit everything as optimally as possible.
This class is typically used to build lightmaps, sprite map or to pack several little textures into a big one.
Note that this class allows allocated Rectangles to be freed: that is the map is dynamically maintained so you can add/remove rectangle based on their life-cycle.
Create an instance of the object with a dimension using the given size
|size||Size||The dimension of the rectangle that will contain all the sub ones. the dimension of the rectangle to store|
Return the current space free normalized between [0;1]
Add a rectangle, finding the best location to store it into the map
@return the Node containing the rectangle information, or null if we couldn't find a free spot
|size||Size||the dimension of the rectangle to store the dimension of the rectangle to store|