mirror of
				https://github.com/HandmadeMath/HandmadeMath.git
				synced 2025-10-26 12:26:59 +00:00 
			
		
		
		
	Added Lerp
This commit is contained in:
		| @@ -306,6 +306,14 @@ Power(float Base, int Exponent) | |||||||
|     return (Result); |     return (Result); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | HMMDEF HINLINE float | ||||||
|  | Lerp(real32 A, real32 B, float Time) | ||||||
|  | { | ||||||
|  |     real32 Result = (1.0f - Time) * A + Time * B; | ||||||
|  |  | ||||||
|  |     return(Result); | ||||||
|  | } | ||||||
|  |  | ||||||
| HMMDEF HINLINE vec2 | HMMDEF HINLINE vec2 | ||||||
| V2(float X, float Y) | V2(float X, float Y) | ||||||
| { | { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zak Strange
					Zak Strange