Merge pull request #34952 from ninjanomnom/its-hard-to-see-under-the-wraps

Left out a closing parenthesis in LERP
This commit is contained in:
vuonojenmustaturska
2018-01-27 02:03:21 +02:00
committed by CitadelStationBot
parent 57cfc1c81e
commit ec4ebd2e3c

View File

@@ -86,7 +86,7 @@
// Performs a linear interpolation between a and b.
// Note that amount=0 returns a, amount=1 returns b, and
// amount=0.5 returns the mean of a and b.
#define LERP(a, b, amount) (amount ? ((a) + ((b) - (a)) * (amount)) : ((a) + ((b) - (a)) * 0.5)
#define LERP(a, b, amount) ( amount ? ((a) + ((b) - (a)) * (amount)) : a )
// Returns the nth root of x.
#define ROOT(n, x) ((x) ** (1 / (n)))