Click or drag to resize

Vector2LinearInterpolate Method (Vector2, Single)

Returns the result of the linear interpolation between this vector and `to` by amount `weight`.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2 LinearInterpolate(
	Vector2 to,
	float weight
)

Parameters

to
Type: GodotVector2
The destination vector for interpolation.
weight
Type: SystemSingle
A value on the range of 0.0 to 1.0, representing the amount of interpolation.

Return Value

Type: Vector2
The resulting vector of the interpolation.
See Also