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