142 * @param other |
142 * @param other |
143 * @return whether the two matrices are equal |
143 * @return whether the two matrices are equal |
144 */ |
144 */ |
145 bool Matrix::operator==(const Matrix& other) const |
145 bool Matrix::operator==(const Matrix& other) const |
146 { |
146 { |
147 for (int i = 0; i < countof(m_values); ++i) |
147 for (int i = 0; i < length(m_values); ++i) |
148 { |
148 { |
149 if (not qFuzzyCompare(m_values[i], other.m_values[i])) |
149 if (not qFuzzyCompare(m_values[i], other.m_values[i])) |
150 return false; |
150 return false; |
151 } |
151 } |
152 return true; |
152 return true; |