mirror of https://github.com/AxioDL/zeus.git
add CMatrix3f::addScaledMatrix
This commit is contained in:
parent
286d098ecb
commit
f17f2371bf
|
@ -140,6 +140,14 @@ public:
|
|||
inline void invert() {*this = inverted();}
|
||||
CMatrix3f inverted() const;
|
||||
|
||||
void addScaledMatrix(const CMatrix3f& other, float scale)
|
||||
{
|
||||
CVector3f scaleVec(scale);
|
||||
vec[0] += other.vec[0] * scaleVec;
|
||||
vec[1] += other.vec[1] * scaleVec;
|
||||
vec[2] += other.vec[2] * scaleVec;
|
||||
}
|
||||
|
||||
union
|
||||
{
|
||||
float m[3][4]; /* 4th row for union-alignment */
|
||||
|
|
Loading…
Reference in New Issue