Thread: Calculate Point in Area

  1. #16
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    The most peaks over 10,000 feet!
    I guess that depends on how you look at it. An actual points only intersects the polygon once, but it intersects two of the bounding lines of the polygon.
    Favorite Quote:

    >For that reason someone invented C++.
    BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!

  2. #17
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    A point counts as 2 intersections because in any closed figure or polygon a point represent a location where two lines meet each other. A line intersection test performed on the lines that share the point would reveal that the ray does indeed cross both lines since lines are infinite in length.

    So it's 7.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. rotating around object (looat)
    By jabka in forum Game Programming
    Replies: 13
    Last Post: 06-18-2008, 05:02 PM
  2. Area of irregular shape
    By Brian in forum Game Programming
    Replies: 4
    Last Post: 06-23-2004, 10:54 AM
  3. Array of pointers to point objects
    By totalfreeloader in forum C++ Programming
    Replies: 6
    Last Post: 11-27-2003, 09:26 AM
  4. observing whether a point is in a triangle???
    By hebele in forum C++ Programming
    Replies: 1
    Last Post: 05-19-2003, 03:38 PM