add lerp to Fix64
parent
318ca22021
commit
e5c72c6f46
|
@ -177,6 +177,11 @@ namespace MoonWorks.Math.Fixed
|
||||||
return Fix64.Min(Fix64.Max(value, min), max);
|
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
|
// Trigonometry functions
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue