diff -a -u -w -r1.1 -r1.12 --- Irrlicht.old/include/matrix4.h 26 Sep 2004 13:44:27 -0000 1.1 +++ Irrlicht/include/matrix4.h 26 Mar 2005 07:48:14 -0000 1.12 @@ -81,6 +81,9 @@ //! Set Scale void setScale( const vector3df& scale ); + //! Get Scale + core::vector3df getScale() const; + //! Translate a vector by the inverse of the translation part of this matrix. void inverseTranslateVect( vector3df& vect ) const; @@ -270,6 +273,11 @@ M[10] = scale.Z; } + inline vector3df matrix4::getScale() const + { + return vector3df(M[0],M[5],M[10]); + } + inline void matrix4::setRotationDegrees( const vector3df& rotation ) { setRotationRadians( rotation * GRAD_PI2 );