Undo all angle lerp changes (#2884)

This commit is contained in:
Leon Friedrich
2022-05-30 17:38:09 +12:00
committed by GitHub
parent 9ef433d3ed
commit cb8d2727f4
2 changed files with 3 additions and 4 deletions

View File

@@ -228,10 +228,9 @@ namespace Robust.Shared.Maths
/// Similar to Lerp but, but defaults to making sure that lerping from 1 to 359 degrees doesn't wrap around
/// the whole circle.
/// </summary>
public static Angle Lerp(in Angle a, in Angle b, float factor, bool reduce = true)
public static Angle Lerp(in Angle a, in Angle b, float factor)
{
return reduce ? a + ShortestDistance(a, b) * factor
: new(a.Theta + (a.Theta - b.Theta) * factor);
return a + ShortestDistance(a, b) * factor;
}
/// <summary>