Skip to main content

computeTriangleClosestPointToPointBarycentric

computeTriangleClosestPointToPointBarycentric(result, result_offset, px, py, pz, ax, ay, az, bx, by, bz, cx, cy, cz) ⇒ void

Kind: global function

ParamTypeDescription
resultArray.<number>result is written as a 2d vector, since barycentrics add up to 1, we omit the last value
result_offsetnumber
pxnumberreference point
pynumberreference point
pznumberreference point
axnumberTriangle apex A
aynumberTriangle apex A
aznumberTriangle apex A
bxnumberTriangle apex B
bynumberTriangle apex B
bznumberTriangle apex B
cxnumberTriangle apex C
cynumberTriangle apex C
cznumberTriangle apex C