Equivalence of glancing hypersurfaces