triangle2d_get_barycentric
triangle2d_get_barycentric(output, output_offset, ax, ay, bx, by, cx, cy, px, py)
Kind: global function
Param | Type | Description |
---|---|---|
output | Array.<number> | TypedArray | Float32Array | |
output_offset | number | |
ax | number | |
ay | number | |
bx | number | |
by | number | |
cx | number | |
cy | number | |
px | number | reference point X |
py | number | reference point Y |