find a scale factor of the dilation