Click or drag to resize

Vector3Barycentric(Vector3, Vector3, Vector3, Double, Double, Vector3) Method

Creates a new Vector3 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 3d-triangle.

Namespace: CFX.Structures.Geometry
Assembly: CFX (in CFX.dll) Version: 2.1.1+880255d2f7380f340f56b243a51d99f2136bdae3
Syntax
public static void Barycentric(
	ref Vector3 value1,
	ref Vector3 value2,
	ref Vector3 value3,
	double amount1,
	double amount2,
	out Vector3 result
)

Parameters

value1  Vector3
The first vector of 3d-triangle.
value2  Vector3
The second vector of 3d-triangle.
value3  Vector3
The third vector of 3d-triangle.
amount1  Double
Barycentric scalar b2 which represents a weighting factor towards second vector of 3d-triangle.
amount2  Double
Barycentric scalar b3 which represents a weighting factor towards third vector of 3d-triangle.
result  Vector3
The cartesian translation of barycentric coordinates as an output parameter.
See Also