Synced
MathHelper.Barycentric
Section titled “MathHelper.Barycentric”
- Returns the Cartesian coordinate for one axis of a point that is defined by a given triangle and two normalized barycentric (areal) coordinates.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Core.Mathematics
Scope: Runtime
Declaration
Section titled “Declaration”public static float InnoEngine.Mathematics.MathHelper.Barycentric(float value1, float value2, float value3, float amount1, float amount2)Parameters
Section titled “Parameters”Parameter value1: The coordinate on one axis of vertex 1 of the defining triangle.
Parameter value2: The coordinate on the same axis of vertex 2 of the defining triangle.
Parameter value3: The coordinate on the same axis of vertex 3 of the defining triangle.
Parameter amount1: The normalized barycentric (areal) coordinate b2, equal to the weighting factor for vertex 2, the coordinate of which is specified in value2.
Parameter amount2: The normalized barycentric (areal) coordinate b3, equal to the weighting factor for vertex 3, the coordinate of which is specified in value3.
Returns
Section titled “Returns”Cartesian coordinate of the specified point with respect to the axis being used.