Return matrix scale by the scaling factors xfactor yfactor and zfactor in the main directions respectively. If only factor is specified, it is used as the scaling factors in all directions.