Thread: observing whether a point is in a triangle???

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    17

    Question observing whether a point is in a triangle???

    hi guys. i have a problem. i did others like this but this is different

    i have three points.let me say (x1,y1), (x2,y2) and (x3,y3).
    as you see these points construct a triangle. my base is (x1,y1) point. and we have a fourth point lets say (a,b). a and b are numbers relative to (x1,y1) point. i mean if (a,b)=(3,4) then it is equal to (x1+3,y1+4). and now the problm is: how can i observe that this point is in the triangle. i mean i give some random point and i want to determine whether this point is in the triangle or not.

    thanks in advance
    Last edited by hebele; 05-19-2003 at 03:17 PM.

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Testing Floating Point Return Values
    By jason_m in forum C Programming
    Replies: 5
    Last Post: 08-15-2008, 01:37 PM
  2. rotating around object (looat)
    By jabka in forum Game Programming
    Replies: 13
    Last Post: 06-18-2008, 05:02 PM
  3. Classes & Collections
    By Max_Payne in forum C++ Programming
    Replies: 7
    Last Post: 12-11-2007, 01:06 PM
  4. const Point& and const Point are same
    By noobcpp in forum C++ Programming
    Replies: 5
    Last Post: 06-30-2007, 01:39 AM
  5. overloading operator help
    By syrel in forum C++ Programming
    Replies: 8
    Last Post: 09-30-2004, 10:49 AM