Add scale matrix constructor

This commit is contained in:
Jack Andersen 2016-04-13 13:06:50 -10:00
parent f17f2371bf
commit d84d38a1a3
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ public:
m[1][1] = scaleVec[1];
m[2][2] = scaleVec[2];
}
CMatrix3f(float scale)
: CMatrix3f(CVector3f(scale)) {}
CMatrix3f(const CVector3f& r0, const CVector3f& r1, const CVector3f& r2)
{vec[0] = r0; vec[1] = r1; vec[2] = r2;}
CMatrix3f(const CMatrix3f& other)