So I fixed the issue after realizing how thick I was.
I passed the translation variables into a function that was doing the conversion for me. The translation variables were named letters a-i.
Within my function I had a loop, which used "i" as an increment and counter. It simply was over-writing the "i" that came from the transformation matrix. I renamed the variables, and it works like a charm.
Special thanks to Roland though, who helped clarify my math and give me a little more understanding what was going on.
I passed the translation variables into a function that was doing the conversion for me. The translation variables were named letters a-i.
Within my function I had a loop, which used "i" as an increment and counter. It simply was over-writing the "i" that came from the transformation matrix. I renamed the variables, and it works like a charm.
Special thanks to Roland though, who helped clarify my math and give me a little more understanding what was going on.