Tell me more ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Let say I have this image,enter image description here

I need to fill the rectangles of fixed size inside Outer Rectangle. How to make that small Rectangles inside Outer Rectangle is always on a straight line(in red color). I am placing rectangles in a particular order, starting at a particular point. I can start placing rectangle at any point. I know I need some transformation at start point of rectangle place. But fail to find a solution.

share|improve this question
What exactly is your question? What (program?) are you working with? If all small rectangles have the same y (ie vertical) coordinate, they are on a line $y=y_0$ like the red one you drew. – example Apr 13 '12 at 11:42
I need to make sure that first point of line and first point of rectangle should be same. So, when you draw rectangle and Line, the rectangle base and line should be same. – user960567 Apr 13 '12 at 11:48
I'd think that the the distance between the line and the outer rectangle should be an integral multiple of breadth of the smaller rectangles. – user21436 Apr 13 '12 at 11:54
@KannappanSampath, Please let me know how much I should tranform. I have all the co-ordinates. – user960567 Apr 13 '12 at 11:56
Do you always want to have three rows of small rectangles below thee red line? What is the co-ordinate of one of the end points of that red line? What is the width of the rectangle? – user21436 Apr 13 '12 at 12:14
show 1 more comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.