Results 1 to 3 of 3

Thread: Finding a point within a triangle

  1. #1
    Newbie
    Joined
    Jul 2018
    From
    UK
    Posts
    2

    Finding a point within a triangle

    Hi, I'm new to this place and have a couple of maths problems that are haunting me while developing a game. The one I'm working on at the moment is as follows.

    I have 2 polygon configurations. The standard one as seen in the diagram at the bottom. A consistently sized triangle. The 3 corners however can be offset on the Y-axis by any positive number (but can be 0), so they'll never go below. My problem however comes when finding a point within the polygon, marked with a small X on the diagram. I have the point in the top polygon and then need to find the equivalent point in the bottom. This of course means the X axis is the same, but the Y is different. It's as if you have a piece of rubber with a dot on it and I need to calculate it's position if it's stretched over the bottom polygon. I hope this all makes sense!

    Attachment 38830
    Nick
    Attached Thumbnails Attached Thumbnails Finding a point within a triangle-maths-problem-1.jpg  
    Last edited by NinjaNick; Jul 6th 2018 at 01:28 AM.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor

    Joined
    Apr 2005
    Posts
    19,926
    Thanks
    3098

    Re: Finding a point within a triangle

    What do you mean by "equivalent" point? What does "equivalent" mean here? Are you thinking of the triangle as a rubber sheet that has been deformed and the point, x, on that sheet moves with the deformation?
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Jul 2018
    From
    UK
    Posts
    2

    Re: Finding a point within a triangle

    Hi Halls, I probably didn't describe this very well. Yes if I have a deformed triangle I need to find point X on the undeformed triangle.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 7
    Last Post: Feb 25th 2017, 05:43 PM
  2. Replies: 7
    Last Post: Aug 30th 2011, 06:15 PM
  3. Replies: 4
    Last Post: Sep 8th 2010, 09:13 AM
  4. Replies: 0
    Last Post: Nov 3rd 2009, 10:18 AM
  5. Replies: 1
    Last Post: Jun 18th 2008, 05:17 AM

/mathhelpforum @mathhelpforum