How spatial operators use R-tree indexes

After you have created an index, it is considered by the query optimizer for any supported combination of argument types.

The index can be used regardless of whether the indexed column is the first or second argument. An operator with two parameters—also known as a binary operator—can take advantage of an index defined on a column that serves as one of its arguments.