mirror of
				https://github.com/HandmadeMath/HandmadeMath.git
				synced 2025-10-26 12:26:59 +00:00 
			
		
		
		
	Added missing HMM_FastInverseSquareRoot prototype
This commit is contained in:
		| @@ -223,6 +223,7 @@ HMMDEF float HMM_ToRadians(float Degrees); | ||||
| HMMDEF float HMM_Inner(hmm_vec3 A, hmm_vec3 B); | ||||
| HMMDEF float HMM_SquareRoot(float Float); | ||||
| HMMDEF float HMM_LengthSquareRoot(hmm_vec3 A); | ||||
| HMMDEF float HMM_FastInverseSquareRoot(float Number); | ||||
| HMMDEF float HMM_Length(hmm_vec3 A);     | ||||
| HMMDEF float HMM_Power(float Base, int Exponent); | ||||
| HMMDEF float HMM_Clamp(float Min, float Value, float Max); | ||||
| @@ -343,6 +344,14 @@ HMM_SquareRoot(float Float) | ||||
|     return(Result); | ||||
| } | ||||
|  | ||||
| HINLINE float | ||||
| HMM_LengthSquareRoot(hmm_vec3 A) | ||||
| { | ||||
|     float Result = HMM_Inner(A, A); | ||||
|  | ||||
|     return (Result); | ||||
| } | ||||
|  | ||||
| HINLINE float | ||||
| HMM_FastInverseSquareRoot(float Number) | ||||
| { | ||||
| @@ -361,14 +370,6 @@ HMM_FastInverseSquareRoot(float Number) | ||||
| 	return ( y ); | ||||
| } | ||||
|  | ||||
| HINLINE float | ||||
| HMM_LengthSquareRoot(hmm_vec3 A) | ||||
| { | ||||
|     float Result = HMM_Inner(A, A); | ||||
|  | ||||
|     return (Result); | ||||
| } | ||||
|  | ||||
| HINLINE float | ||||
| HMM_Length(hmm_vec3 A) | ||||
| { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kyle De'Vir
					Kyle De'Vir