Add Vec2 conversion method to 'Vec2i'
This commit is contained in:
		
							parent
							
								
									e42e6398cb
								
							
						
					
					
						commit
						4aed9ef1a7
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -76,6 +76,11 @@ struct Vec2i
 | 
			
		|||
	{
 | 
			
		||||
		return x == other.x && y == other.y;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	operator Vec2() const
 | 
			
		||||
	{
 | 
			
		||||
		return Vec2(x, y);
 | 
			
		||||
	}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/* Simple Vertex */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue