From 7515fd74c2b0fd7c028276701fb96f9219508655 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 28 Apr 2019 21:33:30 -0700 Subject: Added matrix operator *= to math lib --- Common/interface/BasicMath.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Common/interface') diff --git a/Common/interface/BasicMath.h b/Common/interface/BasicMath.h index 1a0752ef..ad1bc8cb 100644 --- a/Common/interface/BasicMath.h +++ b/Common/interface/BasicMath.h @@ -682,6 +682,11 @@ template struct Matrix2x2 return *this; } + Matrix2x2& operator *= (const Matrix2x2& right) + { + *this = Mul(*this, right); + return *this; + } Matrix2x2 Transpose()const { @@ -807,6 +812,12 @@ template struct Matrix3x3 return *this; } + Matrix3x3& operator *= (const Matrix3x3& right) + { + *this = Mul(*this, right); + return *this; + } + Matrix3x3 Transpose()const { return Matrix3x3 @@ -944,6 +955,12 @@ template struct Matrix4x4 return *this; } + Matrix4x4& operator *= (const Matrix4x4& right) + { + *this = Mul(*this, right); + return *this; + } + Matrix4x4 Transpose()const { return Matrix4x4 -- cgit v1.2.3