I think you want a spatial index. These are documented here.
There are index types used for multi-dimensional indexes. The best known is the R-D tree, which is commonly associated with spatial indexes. These are generally views as extensions on base SQL, which is unfortunate, because multi-dimensional data is rather common.