Hi there,so i'm trying to write a vb.net program which will tell me whether a cartesian point in 2D lies inside or outside of a triangle.(adsbygoogle = window.adsbygoogle || []).push({});

I'm not looking for the code or anything, i'm merely wondering how one does this type of calculation manually?

could the cross product be used?if the results of all three cross products point in the same direction the point lies inside the triangle, otherwise it lies outside the triangle???i read this in a forum but i don't honestly understand the logic behind it?

or is there a much simpler way i have overlooked?

any advice would be much appreciated

debs

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Triangle Geometry

**Physics Forums | Science Articles, Homework Help, Discussion**