Results 1 to 8 of 8

Thread: Rectangles in Rectangle

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Location
    Lithuania
    Posts
    165

    Question Rectangles in Rectangle

    perhaps someone knows how to calculate how many small rectangles fit into one big (rectangles can by rotaded 90 degree) ?

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    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

  3. #3
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849
    I think it is

    Area of large rectangle / Area of small rectangle

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    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?

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Location
    Lithuania
    Posts
    165
    ===========
    I think it is
    Area of large rectangle / Area of small rectangle
    ==============
    No way. In your case all space wil be used.
    P.S. Sorry for my poor English...

  6. #6
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849
    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?
    U got UR answer

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Location
    Lithuania
    Posts
    165
    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.
    P.S. Sorry for my poor English...

  8. #8
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Will it be (big_rect_width - small_rect_width) * (big_rect_height - small_rect_height)?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width