Tesla Graphics Engine Documentation (January 2012)
Barycentric Method (a, b, c, b2, b3, result)
TeslaTesla.MathVector3Barycentric(Vector3%, Vector3%, Vector3%, Single, Single, Vector3%)
Returns a Vector3 containing the 3D Cartesian coordinates of a point specified in barycentric coordinates relative to a 3D triangle.
Declaration Syntax
C#
public static void Barycentric(
	ref Vector3 a,
	ref Vector3 b,
	ref Vector3 c,
	float b2,
	float b3,
	out Vector3 result
)
Parameters
a (Vector3%)
Vector3 containing 3D cartesian coordinates corresponding to triangle's first vertex
b (Vector3%)
Vector3 containing 3D cartesian coordinates corresponding to triangle's second vertex
c (Vector3%)
Vector3 containing 3D 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
result (Vector3%)
Existing vector to hold result

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