Refactored the function that returns the view matrix of a given layer, now it just calls the getglobalmatrix and gets the inverse matrix of the result.
New function to convert coordinates from a layer to another layer space.
New function on transform table to calculate the position of a drawable relative to the root of the drawables tree.
Renamed the coordinatesconverter table to spaceconverter.
Renamed the coordinatesconverter table to spaceconverter.
Renamed the coordinatesconverter file to spaceconverter.
Renamed the coordinatesconvertertest file to spaceconvertertest.
Renamed the coordinates table to vector.
Fixed the spaceconverter.fromlayertoanotherlayer, now it returns the correct vector with values relative to the size of layer2.
Renamed the coordinates file to vector.
Renamed the coordinatestest file to vectortest.
#11 Changed the functions that checks the collisions with rectangles, now ir receives the rectangle as a table, no more two args (position and size).
#11 Added a function to calculate the collision between a drawable and a point.
#11 New unit test to check collisions between a rotated rectagle and a point.
#11 Added a test to check collision between a drawable and a point in two layers.
Fields x and y of the vector now can be setted or getted using the keys 1 and 2.
Added buttons to the samples and fixed the nextmodule field of the context, the main loop was not changed the module.
#11 Added a function to check the collision between a drawable and a point on display.
Changed the samples to use the new function that checks the collision between a drawable and a display point.
Added the vega.animation function to create a controller that animates the value of a given field from a given table.