Merge branch 'master' into GTC_integer
This commit is contained in:
		
						commit
						883d328fb8
					
				| @ -151,7 +151,7 @@ namespace detail | ||||
| 	} | ||||
| 
 | ||||
| 	// sign | ||||
| 	//Try something like based on x >> 31 to get the sign bit | ||||
| 	// fast and works for any type | ||||
| 	template <typename genFIType>  | ||||
| 	GLM_FUNC_QUALIFIER genFIType sign(genFIType x) | ||||
| 	{ | ||||
| @ -159,14 +159,7 @@ namespace detail | ||||
| 			std::numeric_limits<genFIType>::is_iec559 || | ||||
| 			(std::numeric_limits<genFIType>::is_signed && std::numeric_limits<genFIType>::is_integer), "'sign' only accept signed inputs"); | ||||
| 		 | ||||
| 		genFIType result; | ||||
| 		if(x > genFIType(0)) | ||||
| 			result = genFIType(1); | ||||
| 		else if(x < genFIType(0)) | ||||
| 			result = genFIType(-1); | ||||
| 		else | ||||
| 			result = genFIType(0); | ||||
| 		return result; | ||||
| 		return genFIType(genFIType(0) < x) - (x < genFIType(0)); | ||||
| 	} | ||||
| 
 | ||||
| 	template <typename T, precision P, template <typename, precision> class vecType> | ||||
|  | ||||
| @ -213,8 +213,8 @@ namespace glm | ||||
| 		T zFar | ||||
| 	) | ||||
| 	{ | ||||
| 		assert(aspect != static_cast<T>(0)); | ||||
| 		assert(zFar != zNear); | ||||
| 		assert(abs(aspect - std::numeric_limits<T>::epsilon()) > static_cast<T>(0)); | ||||
| 		assert(zFar > zNear); | ||||
| 
 | ||||
| 		T const tanHalfFovy = tan(fovy / static_cast<T>(2)); | ||||
| 
 | ||||
|  | ||||
| @ -84,6 +84,7 @@ Fixes: | ||||
| - Fixed implicit conversion from another tvec2 type to another tvec2 #241 | ||||
| - Fixed lack of consistency of quat and dualquat constructors | ||||
| - Fixed uaddCarray #253 | ||||
| - Fixed float comparison warnings #270 | ||||
| 
 | ||||
| Deprecation: | ||||
| - Removed degrees for function parameters | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Christophe Riccio
						Christophe Riccio