indexOf

indexOf returns an index of the specified location along the specified dimension.

indexOf(Location location, Hierarchy h)