ドキュメント

Unity Engine

Unity Engine

LerpUnclamped

Linearly interpolates between vectors a and b by t.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

LerpUnclamped(Vector2, Vector2, float)

Linearly interpolates between vectors
a
and
b
by
t
.
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.

LerpUnclamped(Vector2, Vector2, float)

Linearly interpolates between vectors
a
and
b
by
t
.
public static Vector2 LerpUnclamped(in Vector2 a, in 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.