Monday 12 December 2011

Progress Central

Today after my exam i decided to knock out a bunch of implementations for Gladius.Math.  We now have a 90% complete implementation of the new API and its exciting. Check it out here: https://github.com/saecob/gladius.math

The main work was done to Matrices of the 3x3 and 4x4 variety and of course the ever loved test scripts to go along with them.  The biggest change to get used to is definitely the addition of matrix lists as parameters for almost all of the matrix implementations.

Because of this, i decided to iterate through the matrix list in each respective function and call the base Matrix class to complete the additions.  This looping system may have a pretty big impact on performance for long lists of matrices but for now it seems to be working fine.

Along the way while updating Matrix4, i managed to break the transform methods as they were relying on the old method calls to multiply.  A simple fix but it will go in along with my next big update.  All i would need to do is to add the 2 matrices being multiplied to a list and pass that parameter.

The next big update will include Quaternion and Transform method implementations and tests, along with some way to allow a developer to clone a matrix/vector without incurring a new allocation.

No comments:

Post a Comment