### Coordinates and vectors

Starting with cartesian coordinates we define new ones as follows: $x'=ax+by$, $y'=cx+dy$, where $a,b,c,d$ 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 ?