+ Reply to Thread
Results 1 to 2 of 2

Thread: Rectangle Intersection

  1. #1
    Surfer is offline Senior Member
    Join Date
    Mar 2010
    Posts
    321

    Rectangle Intersection

    Given right_top and left_bottom co-ordinates, write a program to find whether two rectangle intersects.

  2. #2
    kv391_ is offline Junior Member
    Join Date
    Jan 2012
    Posts
    3
    Make one rectangle sit at the origin. (r1)
    Shift the other rectangle accordingly. (r2)
    Then, n = check how many vertices of r2 lie inside r1.
    For, n=1,2, r2 intersects r1.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. line-segment intersection
    By admin in forum Adobe
    Replies: 3
    Last Post: 29th February 2012, 02:04
  2. Draw Rectangle
    By Krazy in forum Google
    Replies: 1
    Last Post: 26th September 2010, 11:13
  3. line segment intersection
    By Surfer in forum Adobe
    Replies: 2
    Last Post: 22nd April 2010, 23:39
  4. Find intersection of two arrays
    By TopGun in forum Amazon
    Replies: 0
    Last Post: 19th June 2008, 14:27

Tags for this Thread

Bookmarks

Posting Permissions

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