Rectangle co-ordinates on resize

All about geometry

Rectangle co-ordinates on resize

Postby Guest » Mon May 28, 2018 9:41 am

Hi,
Image
I have 2 rectangles as in the attached image.
Blue Rect(Lets say, w by h -> 300 x 80)
There's a Red Rect inside Blue rect(Lets say, co-ordinates -> Top Left point(75,15)
(w by h -> 48 x 23).

Now if the blue rect is resized to (w by h = 128 x 32), what would be the co-ordinates and width x height of the red rect inside the blue rect of (128 x 32).

Regards,
Sayan
Attachments
Untitled.png
Example of rectangle resize
Untitled.png (2.22 KiB) Viewed 113 times
Guest
 

Return to Geometry



Who is online

Users browsing this forum: No registered users and 1 guest