matrix: add matrix multiplication assignment
This commit is contained in:
parent
616f6f1db9
commit
7f152e5350
@ -303,6 +303,14 @@ matrix<T>::operator* (const matrix<T> &rhs) const {
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
template <typename T>
|
||||
matrix<T>&
|
||||
matrix<T>::operator*=(const matrix<T> &rhs) {
|
||||
return *this = *this * rhs;
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
template <typename T>
|
||||
vector<4,T>
|
||||
|
@ -43,6 +43,8 @@ namespace util {
|
||||
T det (void) const;
|
||||
|
||||
matrix<T> operator* (const matrix<T>&) const;
|
||||
matrix<T>& operator*=(const matrix<T>&);
|
||||
|
||||
vector<4,T> operator* (const vector<4,T>&) const;
|
||||
point<4,T> operator* (const point<4,T> &) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user