Similar Items: Higher-Dimensional Timed and Hybrid Automata