Click or drag to resize

Vector4Barycentric(Vector4, Vector4, Vector4, Double, Double, Vector4) Method

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

Namespace: CFX.Structures.Geometry
Assembly: CFX (in CFX.dll) Version: 2.0.0+5bb1f71a933ed371a0f5f2d5e7db34c89b75f3ea
Syntax
public static void Barycentric(
	ref Vector4 value1,
	ref Vector4 value2,
	ref Vector4 value3,
	double amount1,
	double amount2,
	out Vector4 result
)

Parameters

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