기술 자료

Unity Engine

Unity Engine

LerpUnclamped(Vector2, Vector2, float)

Linearly interpolates between vectors a and b by t.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

Parameters

The first vector to interpolate between.

The second vector to interpolate between.

The amount to interpolate between.

Returns

Type

Description

Vector2When
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

When
t
= 0 returns
a
.
When
t
= 1 return
b
.
When
t
= 0.5 returns the midpoint of
a
and
b
.
Additional Resources: Vector2.Lerp.