bool equals(Matrix3 matrix) { var te = elements; var me = matrix.elements; for (var i = 0; i < 9; i++) { if (te[i] != me[i]) return false; } return true; }