Commit 402c34e4 authored by hybrid's avatar hybrid

Warning fix and new method for both 1.4 branch and trunk.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1332 dfc29bdd-3216-0410-991c-e03cc46cb475
parent c65379e7
...@@ -136,6 +136,9 @@ namespace core ...@@ -136,6 +136,9 @@ namespace core
//! Set Scale //! Set Scale
CMatrix4<T>& setScale( const vector3d<T>& scale ); CMatrix4<T>& setScale( const vector3d<T>& scale );
//! Set Scale
CMatrix4<T>& setScale( const T scale ) { return setScale(core::vector3d<T>(scale,scale,scale)); }
//! Get Scale //! Get Scale
core::vector3d<T> getScale() const; core::vector3d<T> getScale() const;
...@@ -711,7 +714,7 @@ namespace core ...@@ -711,7 +714,7 @@ namespace core
f64 rotx, roty, X, Z; f64 rotx, roty, X, Z;
if (fabs(C)>0.0005f) if (fabs(C)>ROUNDING_ERROR_64)
{ {
const T invC = 1.0/C; const T invC = 1.0/C;
rotx = mat(2,2) * invC; rotx = mat(2,2) * invC;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment