Vector2.Barycentric Method (Microsoft.Xna.Framework)
Creates a new Vector2 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 2d-triangle.
- C#
- VB
- F#
public static void Barycentric( Vector2 value1, Vector2 value2, Vector2 value3, float amount1, float amount2, out Vector2 result )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- value1
-
Type: Microsoft.Xna.Framework.Vector2
The first vector of 2d-triangle.
- value2
-
Type: Microsoft.Xna.Framework.Vector2
The second vector of 2d-triangle.
- value3
-
Type: Microsoft.Xna.Framework.Vector2
The third vector of 2d-triangle.
- amount1
-
Type: System.Single
Barycentric scalarb2 which represents a weighting factor towards second vector of 2d-triangle.
- amount2
-
Type: System.Single
Barycentric scalarb3 which represents a weighting factor towards third vector of 2d-triangle.
- result
-
Type: out Microsoft.Xna.Framework.Vector2
The cartesian translation of barycentric coordinates as an output parameter.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web