Vector2.Hermite Method (Microsoft.Xna.Framework)
Creates a new Vector2 that contains hermite spline interpolation.
- C#
- VB
- F#
public static Vector2 Hermite( Vector2 value1, Vector2 tangent1, Vector2 value2, Vector2 tangent2, float amount )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- value1
-
Type: Microsoft.Xna.Framework.Vector2
The first position vector.
- tangent1
-
Type: Microsoft.Xna.Framework.Vector2
The first tangent vector.
- value2
-
Type: Microsoft.Xna.Framework.Vector2
The second position vector.
- tangent2
-
Type: Microsoft.Xna.Framework.Vector2
The second tangent vector.
- amount
-
Type: System.Single
Weighting factor.
Return Value
Type: Microsoft.Xna.Framework.Vector2The hermite spline interpolation vector.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web