Coordinates and vectors

Starting with cartesian coordinates we define new ones as follows: , , where are some constant parameters. What conditions on these parameters should be satisfied in order that the new coordinates also be cartesian and the measure of the distance remain the same ?