add lerp to Fix64

main
cosmonaut 2022-05-18 18:28:53 -07:00
parent 318ca22021
commit e5c72c6f46
1 changed files with 5 additions and 0 deletions

View File

@ -177,6 +177,11 @@ namespace MoonWorks.Math.Fixed
return Fix64.Min(Fix64.Max(value, min), max);
}
public static Fix64 Lerp(Fix64 value1, Fix64 value2, Fix64 amount)
{
return value1 + (value2 - value1) * amount;
}
// Trigonometry functions
/// <summary>