In my game I have 3 points that create a triangular plane similar to the image below but with uniform coordinates:
Each tringle is made of 3 points e.g.
P0 (x,y,z)
P1 (x,y,z)
P2 (x,y,z)
I also have the point:
P (x,y,z)
As shown in the diagram below, is is possible to tell if the plane created by P0, P1 & P2 passes through P?
I have looked online however all results do not seem to fit the problem in a programming orientated approach. Ideally i'd like to pass the coordinates to a function/equation and get a true/false result.
Thanks