Calculate scaling factor for converting point1( x,y coordinates) of one rectangle to Point1( x,y) of a different rectangle
问题 Process of scaling x,y coordinates of one rectangle to other rectangle coordinates is pretty simple as better explained at this link http://www.icoachmath.com/math_dictionary/scale_factor.html if we have two rectangle one is having Maxwidth: 2000 and Maxheight: 1000 and second rectangle of size MaxWidth : 4000 and MaxHeight = 2000 so scale factor for converting coordinate of rect1 to rect2 would be for x in rect2 : (x in rect1) * (MaxWidth of Rect2/ MaxWidht of Rect1) for y in rect2 : (y in