Appearance
anim-format (runtime format) / barycentric
Function: barycentric()
ts
function barycentric(
pts,
a,
b,
c,
x,
y
): [number, number, number] | null;barycentric weights of (x, y) in triangle (a, b, c) of pts; null when the triangle is degenerate
Parameters
| Parameter | Type |
|---|---|
pts | readonly number[] |
a | number |
b | number |
c | number |
x | number |
y | number |
Returns
[number, number, number] | null