transform position along either axis depending on piece positioning