| Parameter | Description |
|---|---|
| a | The first triangle vertex, weighted by u. |
| b | The second triangle vertex, weighted by v. |
| c | The third triangle vertex, weighted by w. |
| u | The barycentric weight of a. |
| v | The barycentric weight of b. |
| w | The barycentric weight of c. |
| result | Receives the interpolated vertex. |
Interpolates between three vertices using barycentric weights, writing into result
a vertex at an arbitrary point inside (or outside) the triangle they form.
Use this to place a vertex anywhere within a triangle — for example when re-meshing or clipping a fill.
As with Vertex.Lerp, the continuous vertex data is
blended and the discrete identifying data is taken from a, so the three vertices must
belong to the same fill. The weights are expected to sum to 1 for a point inside the triangle, but are
not validated.
| Parameter | Description |
|---|---|
| a | The first triangle vertex, weighted by u. |
| b | The second triangle vertex, weighted by v. |
| c | The third triangle vertex, weighted by w. |
| u | The barycentric weight of a. |
| v | The barycentric weight of b. |
| w | The barycentric weight of c. |
Vertex The interpolated vertex.
Interpolates between three vertices using barycentric weights, returning the vertex at that point. Convenience overload that returns the result instead of writing to an out parameter.