기술 자료

Unity Engine

Unity Engine

LerpUnclamped(Vector4, Vector4, float)

Linearly interpolates between two vectors.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static Vector4 LerpUnclamped(Vector4 a, Vector4 b, float t)

Parameters

The first point to interpolate between.

The second point to interpolate between.

The amount to interpolate between.

Returns

Type

Description

Vector4When
t
is equal to 0, returns
a
. When
t
is equal to 1, returns
b
. When
t
is equal to 0.5, returns the midpoint of
a
and
b
.

Remarks

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.
Additional Resources: Vector4.Lerp.