comment kmMat4 & Matrix conversion code

This commit is contained in:
Huabing.Xu 2014-04-14 17:49:45 +08:00
parent 15cc63c2ba
commit c081fc61aa
1 changed files with 11 additions and 11 deletions

View File

@ -44,18 +44,18 @@ NS_CC_MATH_BEGIN
class Matrix class Matrix
{ {
public: public:
//temp add conversion // //temp add conversion
operator kmMat4() const // operator kmMat4() const
{ // {
kmMat4 result; // kmMat4 result;
kmMat4Fill(&result, m); // kmMat4Fill(&result, m);
return result; // return result;
} // }
Matrix(const kmMat4& mat) // Matrix(const kmMat4& mat)
{ // {
set(mat.mat); // set(mat.mat);
} // }
/** /**
* Stores the columns of this 4x4 matrix. * Stores the columns of this 4x4 matrix.
* */ * */