Table of Contents

Method Lerp

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

Lerp(Vector2, Vector2, float)

Linearly interpolates between the two given samples.

protected override Vector2 Lerp(Vector2 outputSampleMin, Vector2 outputSampleMax, float t)

Parameters

outputSampleMin Vector2

The value when t is less than or equal to 0.

outputSampleMax Vector2

The value when t is greater than or equal to 1.

t float

The fraction of the minimum sample to use.

Returns

Vector2