Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Returns the Cartesian coordinate for one axis of a point that is defined by a given triangle and two normalized barycentric (areal) coordinates.

API: scripting
Project: Inno.Core.Mathematics
Scope: Runtime

public static float InnoEngine.Mathematics.MathHelper.Barycentric(float value1, float value2, float value3, float amount1, float amount2)

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.

Cartesian coordinate of the specified point with respect to the axis being used.