Click or drag to resize

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
)

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: Vector2
The interpolated vector.
See Also