Vector2Barycentric(Vector2, Vector2, Vector2, Double, Double, Vector2) Method |
Creates a new
Vector2 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 2d-triangle.
Namespace: CFX.Structures.GeometryAssembly: CFX (in CFX.dll) Version: 2.0.0+5bb1f71a933ed371a0f5f2d5e7db34c89b75f3ea
Syntaxpublic static void Barycentric(
ref Vector2 value1,
ref Vector2 value2,
ref Vector2 value3,
double amount1,
double amount2,
out Vector2 result
)
Public Shared Sub Barycentric (
ByRef value1 As Vector2,
ByRef value2 As Vector2,
ByRef value3 As Vector2,
amount1 As Double,
amount2 As Double,
<OutAttribute> ByRef result As Vector2
)
Parameters
- value1 Vector2
- The first vector of 2d-triangle.
- value2 Vector2
- The second vector of 2d-triangle.
- value3 Vector2
- The third vector of 2d-triangle.
- amount1 Double
- Barycentric scalar b2 which represents a weighting factor towards second vector of 2d-triangle.
- amount2 Double
- Barycentric scalar b3 which represents a weighting factor towards third vector of 2d-triangle.
- result Vector2
- The cartesian translation of barycentric coordinates as an output parameter.
See Also