Changed scalingFactor from Point to double[]