Vector2DLerp Method (Vector2D, Vector2D, Single) |
Linearly interpolates between two vectors by t.
Namespace:
LightBuzz
Assembly:
LightBuzz (in LightBuzz.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static Vector2D Lerp(
Vector2D vector1,
Vector2D vector2,
float t
)
Public Shared Function Lerp (
vector1 As Vector2D,
vector2 As Vector2D,
t As Single
) As Vector2D
public:
static Vector2D Lerp(
Vector2D vector1,
Vector2D vector2,
float t
)
static member Lerp :
vector1 : Vector2D *
vector2 : Vector2D *
t : float32 -> Vector2D
Parameters
- vector1
- Type: LightBuzzVector2D
The first vector. - vector2
- Type: LightBuzzVector2D
The second vector. - t
- Type: SystemSingle
A proportion between 0 and 1.
Return Value
Type:
Vector2DThe resulting vector.
See Also