Version: 2020.1
LanguageEnglish
  • C#

Vector4.Lerp

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static Vector4 Lerp(Vector4 a, Vector4 b, float t);

Description

Linearly interpolates between two vectors.

Interpolates between a and b by amount t.

The parameter t is clamped between [0...1].

When t = 0 returns a.
When t = 1 returns b.
When t = 0.5 returns the midpoint of a and b.

See Also: LerpUnclamped.

Did you find this page useful? Please give it a rating: