i was working in 3d geometry and i looking for know, if a point belongs to a triangle. I found this "Determine if projection of 3D point onto plane is within a triangle" but i doesn't know how resolve this operation. $$ γ=[(u⃗ × w⃗ )⋅n⃗ ]/n⃗ ² $$ On google i found how resolve
- u × w
- resulta.x = u.yw.z-u.zw.y;
- resulta.y = u.zw.x-u.xw.z;
- resulta.z = u.xw.y-u.yw.x;
- u . w
- resulta = (u.xw.x)+(u.yw.y)+(u.z*w.z);
But how resolve this : $$ [(u⃗ × w⃗ )⋅n⃗ ]/n⃗² $$