Compares the dimension dim value of the point at position i with the point at position j
dim
i
j
Compares the dimension dim value of the point at position j with the provided value