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