Hayno

10 Reputation

One Badge

11 years, 284 days

MaplePrimes Activity


These are replies submitted by Hayno

@Hayno Even if there are possible triangles that don't satisfy this, this is the best method that I can think of via inequalities so I would be greatly appreciative of the function if you had the time to write it

@Carl Love I've looked at the possibilities and this would work! If you could help me with the function that would be great!

@Kitonum All that needs to be printed is "True" if the 4th point satisfies 2 or 3 inequalities and "False" if the point only satisfies 1 or doesn't satisfy any

Thanks

@Hayno And finally if the point does suit the 2 or 3 inequalities then print true and if it only suits 1 or none print false? If this makes any sense? ha

@Carl Love I've given it another thought and would it be possible to write the three inequalities defining the triangle, and also whether the point that determines one end of a line segment (ie the point in question) satisfies at least 2 inequalities? That should account for all possibilities of the segment intersecting the triangle if the inequalities are formed with less than or equal to and greater than or equal to? Sorry for the hassle by the way! 

@Carl Love Literally a line joining the origin to the point, basically a fragment of a line. e.g. <3,2>. I understand that a vector is not a line, but the problem that I'm trying to solve uses the term "vector". Even though it's an extremely ambiguous and confusing way to phrase the question that was my interpretation of it :)

@Carl Love Determining whether the vector intersects the triangle using the inequalities forming the triangle. Thanks again!!

@Hayno Is there any way that the 2 functions that you gave to me could be combined? ie Use the second one to form the inequalities and then the first one to see if a point/vector satisfies all 3? And keeping it as the same function?

Thanks again!

Thanks so much!! :)

@Carl Love Is there any way that I could construct the 3 inequalities from 3 given points such that the line forming one inequality was formed by 2 of the points and the third point satisfied the inequality 

eg For the points (2,3), (4,5), (8,2) one inequality would be formed by the equation of a line from (2,3) and (4,5) and then (8,2) satisfied it (determining whether the line was > or < 0) if you understand?

Page 1 of 1