https://www.qb64.org/forum/index.php?topic=2714.30A triangle (call it the base triangle) is formed by 3 points x, y, z Find if a 4th point x, y ,z rests on the triangle or not.
I find
@Ashish solution interesting. However the whole thread (I think) is dealing with 2D and I thought Ashish's solution would work for 3D as well.
Consider a 4th point not on the triangle. There are 4 points total x, y, z which form a tetrahedron. 4 triangles form the tetrahedron. If the 4th point is not on the base triangle then the total area of the 3 remaining triangles will be greater than the area of the base triangle.
Need some math to prove that. It looks like the 2D case was proven already so it should work for 3D .