Tesla Graphics Engine Documentation (January 2012)
Barycentric Method (a, b, c, b2, b3)
TeslaTesla.MathVector2Barycentric(Vector2, Vector2, Vector2, Single, Single)
Returns a Vector2 containing the 2D Cartesian coordinates of a point specified in barycentric coordinates relative to a 2D triangle.
Declaration Syntax
C#
public static Vector2 Barycentric(
	Vector2 a,
	Vector2 b,
	Vector2 c,
	float b2,
	float b3
)
Parameters
a (Vector2)
Vector2 containing 2D cartesian coordinates corresponding to triangle's first vertex
b (Vector2)
Vector2 containing 2D cartesian coordinates corresponding to triangle's second vertex
c (Vector2)
Vector2 containing 2D cartesian coordinates corresponding to triangle's third vertex
b2 (Single)
Barycentric coordinate b2 that is the weighting factor for the second vertex
b3 (Single)
Barycentric coordinate b3 that is the weighting factor for the third vertex
Return Value
Resulting vector

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)