Implementing VectorUtil.isInTriangleVec3()
Posted by ericg on Nov 29, 2014; 6:28am
URL: https://forum.jogamp.org/Implementing-VectorUtil-isInTriangleVec3-tp4033678.html
Hello, I am interested in using the function isInTriangleVec3() from the VectorUtil library but I can't find any documentation on how to use it. The closest I found was vertexInTriangle() but it is missing parameters ac, ab and ap. What I have is this:
public static boolean isInTriangleVec3(final float[] a, final float[] b, final float[] c,
final float[] p,final float[] ac, final float[] ab,
final float[] ap)
I assume a, b and c are the 3 vertices of the current triangle. 'p' is the vertex that I am testing. What are ac, ab and ap?