Finding the position percentage of the object in the a similar sized small rectangle

39 Views Asked by At

I am trying to find the position percentage of the object in the lower smaller square. So the use case is, in the first square(big square) there is an object positioned at 69.335% from the leftmost corner and the rectangle is itself positioned at 27% from left most corner.

I have a smaller rectangle with a different dimension, which is placed at 3.691% from the left-most corner of the main canvas(1368*650). I want to position the object in the same location in the smaller square (that is on the right side of the small square.).

I am unable to formulate it. Can someone please help?

Rectangle with clear values