perhaps someone knows how to calculate how many small rectangles fit into one big (rectangles can by rotaded 90 degree) ?
Printable View
perhaps someone knows how to calculate how many small rectangles fit into one big (rectangles can by rotaded 90 degree) ?
Since a line cannot be less than one pixel wide, so the maximum number of rectangles within a rectangle will always be lesser of these two:
Rectangle_Width/2 OR Rectangle_Height/2
I think it is
Area of large rectangle / Area of small rectangle
I might be confused here, what are you trying to ask:
How many rectangles of a given size fit into a bigger rectangle?
or
How many rectangles can be drawn inside a given rectangle?
===========
I think it is
Area of large rectangle / Area of small rectangle
==============
No way. In your case all space wil be used.
U got UR answer ;)Quote:
Originally posted by amitabh
I might be confused here, what are you trying to ask:
How many rectangles of a given size fit into a bigger rectangle?
or
How many rectangles can be drawn inside a given rectangle?
OK :) How many rectangles of given size can be drawn inside a given rectangle of biger size.Quote:
Originally posted by amitabh
I might be confused here, what are you trying to ask:
How many rectangles of a given size fit into a bigger rectangle?
or
How many rectangles can be drawn inside a given rectangle?
Will it be (big_rect_width - small_rect_width) * (big_rect_height - small_rect_height)?