Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Fix generic lerp never reaching target #388

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BeardedManStudios
namespace BeardedManStudios
{
/// <summary>
/// A class that is to be extended to support math models that are not currently available in any
Expand All @@ -21,7 +21,7 @@ public static double Lerp(double a0, double a1, float t)

public static T Lerp<T>(T a0, T a1, float t)
{
return a0;
return t == 0f ? a0 : a1;
}

/// <summary>
Expand Down