Thread: What would the formula be for finding the coords of a second triangle

  1. #1
    Shadow12345
    Guest

    What would the formula be for finding the coords of a second triangle

    I have a triangle being drawn, its coordinates are A(X, Y, Z), B(X, Y, Z), and C(X, Y, Z)

    I need to draw another triangle that is basically the same triangle that is originally being drawn mirrored over itself. Two of the coordinates would be the same because they lie on top of each other, however I do not know the formula for finding the coordinates of the third vertex of the second triangle. If you can help me I will send you 500,000,000,000,000,000 yen!

    These two triangles combined will form a solid quadrilateral.

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Which line do you want to reflect about?
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    The third coordinate would be the slope of side a and b from triangle 1.

    You know the slope of side B and A by y2-y1/x2-x1
    This demonstrates what I mean..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Recursive Triangle Function
    By w2look in forum C Programming
    Replies: 14
    Last Post: 11-13-2010, 02:31 PM
  2. Formula for Area of a triangle in 3D??
    By Zeeshan in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 04-06-2008, 03:27 AM
  3. Right Triangle Program
    By BSmith4740 in forum C# Programming
    Replies: 9
    Last Post: 02-27-2008, 12:24 AM
  4. Stupid Logic Problem Need Outside Viewpoint
    By RP319 in forum C++ Programming
    Replies: 5
    Last Post: 03-03-2005, 10:59 PM
  5. Just in case: "Odd" Triangle Challenge (for me)
    By BB18 in forum C Programming
    Replies: 3
    Last Post: 10-09-2004, 12:02 AM