mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-23 01:18:46 +00:00
Internalise LerpInternal method
This commit is contained in:
parent
688058a7aa
commit
4a88358f47
@ -131,7 +131,7 @@ namespace X10D.DoubleExtensions
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
private static double LerpInternal(double a, double b, double t)
|
||||
internal static double LerpInternal(double a, double b, double t)
|
||||
{
|
||||
// rookie mistake: a + t * (b - a)
|
||||
// "precise" method: (1 - t) * a + t * b
|
||||
|
@ -132,7 +132,7 @@ namespace X10D.SingleExtensions
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
private static float LerpInternal(float a, float b, float t)
|
||||
internal static float LerpInternal(float a, float b, float t)
|
||||
{
|
||||
// rookie mistake: a + t * (b - a)
|
||||
// "precise" method: (1 - t) * a + t * b
|
||||
|
Loading…
Reference in New Issue
Block a user