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