mapgen math: scale splitted to 3 coords, invert_yx added