code for shifting direct coordinates, multiplying number of defined points in each direction