mirror of
				https://github.com/NoelFB/blah.git
				synced 2025-11-04 01:41:34 +08:00 
			
		
		
		
	Use correct rect overlap check
This commit is contained in:
		@ -727,7 +727,7 @@ namespace Blah
 | 
			
		||||
 | 
			
		||||
	template<class T>
 | 
			
		||||
	constexpr bool Rect<T>::overlaps(const Rect& rect) const {
 | 
			
		||||
		return x + w >= rect.x && y + h >= rect.y && x < rect.x + rect.w && y < rect.y + rect.h;
 | 
			
		||||
		return x + w > rect.x && y + h > rect.y && x < rect.x + rect.w && y < rect.y + rect.h;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	template<class T>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user