Login  Register

Re: Implementing VectorUtil.isInTriangleVec3()

Posted by gouessej on Nov 29, 2014; 9:12am
URL: https://forum.jogamp.org/Implementing-VectorUtil-isInTriangleVec3-tp4033678p4033679.html

Hi

This method is partially documented and I remind you that JOGL is open source. Then, the best way to know how it works consists in ... looking at its source code, doesn't it?

https://github.com/sgothel/jogl/blob/master/src/jogl/classes/com/jogamp/opengl/math/VectorUtil.java#L720

ac, ab and ap represent the vectors formed by the vertices a and c (ac), a and b (ab) and a and p (ap). You can pass whatever you want as they are output parameters.

Feel free to improve the documentation. A git pull request would be welcome.
Julien Gouesse | Personal blog | Website