mising exports in PIString

This commit is contained in:
2020-09-10 17:33:09 +03:00
parent 05b48af153
commit cb2ef7113a
3 changed files with 12 additions and 3 deletions

View File

@@ -347,7 +347,15 @@ public:
bool isValid() const {return !PIVector2D<Type>::isEmpty();}
_CMatrix & operator =(const PIVector<PIVector<Type> > & v) {*this = _CMatrix(v); return *this;}
bool operator ==(const _CMatrix & sm) const {PIMM_FOR_A(i) if (_V2D::mat[i] != sm.mat[i]) return false; return true;}
bool operator ==(const _CMatrix & sm) const {
if(_V2D::mat.size() != sm.mat.size())
return false;
PIMM_FOR_A(i) {
if (_V2D::mat[i] != sm.mat[i])
return false;
}
return true;
}
bool operator !=(const _CMatrix & sm) const {return !(*this == sm);}
void operator +=(const _CMatrix & sm) {PIMM_FOR_A(i) _V2D::mat[i] += sm.mat[i];}
void operator -=(const _CMatrix & sm) {PIMM_FOR_A(i) _V2D::mat[i] -= sm.mat[i];}