From: Vincent Fourmond Date: 2006-12-21T22:24:26+09:00 Subject: Re: Matrix class for ruby? seepee wrote: > Does anyone know of a functional Matrix math class for ruby that could > multiply, add and substract 3x2 or larger matrices. > > The matrix.rb that is in Ruby API cannot multiply anything larger than 2x2 > matrices, which makes it useless for 2D or 3D graphics (for instance). OK, I understand now: you want graphical transformations. They are *not* real matrices, but the combination of a real matrix and a translation vector. So you need special rules to combine them (although for additions and substractions, standard matrix multiplications should work). I don't know any package doing that in Ruby -- but if you consider writing one, that would definitely be an interesting addition. Cheers ! Vince -- Vincent Fourmond, PhD student http://vincent.fourmond.neuf.fr/