getBarycoord
Computes the barycentric coordinates of point in the triangle. Returns null (and sets target to zero) if the triangle is degenerate.
Return
The barycentric coordinates for the given point, or null if degenerate.
Parameters
point
A point in 3D space.
a
The first corner of the triangle.
b
The second corner of the triangle.
c
The third corner of the triangle.
target
The target vector that is used to store the method's result.