Control of machines or pumps with rotary cylinder blocks by varying the relative positions of a swash plate and a cylinder block