Click or drag to resize

Vector2CubicInterpolate Method

Performs a cubic interpolation between vectors `preA`, this vector, `b`, and `postB`, by the given amount `t`.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2 CubicInterpolate(
	Vector2 b,
	Vector2 preA,
	Vector2 postB,
	float t
)

Parameters

b
Type: GodotVector2
The destination vector.
preA
Type: GodotVector2
A vector before this vector.
postB
Type: GodotVector2
A vector after `b`.
t
Type: SystemSingle
A value on the range of 0.0 to 1.0, representing the amount of interpolation.

Return Value

Type: Vector2
The interpolated vector.
See Also