src/types/matrix.cpp

changeset 1062
4119185b56ca
parent 1037
4a9185e94d78
child 1063
1f15c52c11f6
equal deleted inserted replaced
1061:273333700685 1062:4119185b56ca
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;

mercurial