In This Topic
Performs a linear interpolation between two vectors based on the given weighting.
Syntax
'Declaration
Public Shared Sub LerpRef( _
ByRef As Vector2, _
ByRef As Vector2, _
ByRef As Vector2, _
ByVal As System.Single _
)
public static void LerpRef(
out Vector2 ,
ref Vector2 ,
ref Vector2 ,
System.float
)
Parameters
- result
- When the method completes, contains an the interpolated vector.
- value1
- The first vector.
- value2
- The second vector.
- amount
- A value between 0 and 1 that indicates the weight of value2.
See Also