computeTriangleClosestPointToPointBarycentric
computeTriangleClosestPointToPointBarycentric(result, result_offset, px, py, pz, ax, ay, az, bx, by, bz, cx, cy, cz) ⇒ void
Kind: global function
Param | Type | Description |
---|---|---|
result | Array.<number> | result is written as a 2d vector, since barycentrics add up to 1, we omit the last value |
result_offset | number | |
px | number | reference point |
py | number | reference point |
pz | number | reference point |
ax | number | Triangle apex A |
ay | number | Triangle apex A |
az | number | Triangle apex A |
bx | number | Triangle apex B |
by | number | Triangle apex B |
bz | number | Triangle apex B |
cx | number | Triangle apex C |
cy | number | Triangle apex C |
cz | number | Triangle apex C |