Click or drag to resize

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.Utilities
Assembly: CFX (in CFX.dll) Version: 1.7.3
Syntax
public static double Barycentric(
	double value1,
	double value2,
	double value3,
	double amount1,
	double amount2
)

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