Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Vector4.LerpUnclamped

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

Description

Linearly interpolates between two vectors.

Interpolates between a and b by amount t.

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

See Also: Lerp.

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