MathHelperBarycentric Method |
Returns the Cartesian coordinate for one axis of a point that is defined by a
given triangle and two normalized barycentric (areal) coordinates.
Namespace: CFX.UtilitiesAssembly: CFX (in CFX.dll) Version: 2.0.0+5bb1f71a933ed371a0f5f2d5e7db34c89b75f3ea
Syntaxpublic static double Barycentric(
double value1,
double value2,
double value3,
double amount1,
double amount2
)
Public Shared Function Barycentric (
value1 As Double,
value2 As Double,
value3 As Double,
amount1 As Double,
amount2 As Double
) As Double
Parameters
- value1 Double
-
The coordinate on one axis of vertex 1 of the defining triangle.
- value2 Double
-
The coordinate on the same axis of vertex 2 of the defining triangle.
- value3 Double
-
The coordinate on the same axis of vertex 3 of the defining triangle.
- amount1 Double
-
The normalized barycentric (areal) coordinate b2, equal to the weighting factor
for vertex 2, the coordinate of which is specified in value2.
- amount2 Double
-
The normalized barycentric (areal) coordinate b3, equal to the weighting factor
for vertex 3, the coordinate of which is specified in value3.
Return Value
Double
Cartesian coordinate of the specified point with respect to the axis being used.
See Also