|
Vector2Lerp Method
|
Linearly interpolates between two vectors based on the given weighting.
Namespace:
Karamba.Geometry
Assembly:
KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Vector2 Lerp(
Vector2 value1,
Vector2 value2,
double amount
)
Public Shared Function Lerp (
value1 As Vector2,
value2 As Vector2,
amount As Double
) As Vector2
public:
static Vector2 Lerp(
Vector2 value1,
Vector2 value2,
double amount
)
static member Lerp :
value1 : Vector2 *
value2 : Vector2 *
amount : float -> Vector2
Parameters
- value1
- Type: Karamba.GeometryVector2
The first source vector. - value2
- Type: Karamba.GeometryVector2
The second source vector. - amount
- Type: SystemDouble
Value between 0 and 1 indicating the weight of the second source vector.
Return Value
Type:
Vector2The interpolated vector.
See Also