Fix methods in math.geometry
							parent
							
								
									0ff745ffed
								
							
						
					
					
						commit
						d937e03e1a
					
				| 
						 | 
				
			
			@ -4,5 +4,5 @@ IN: math.geometry
 | 
			
		|||
GENERIC: width  ( object -- width )
 | 
			
		||||
GENERIC: height ( object -- width )
 | 
			
		||||
 | 
			
		||||
GENERIC: set-x! ( object x -- object )
 | 
			
		||||
GENERIC: set-y! ( object x -- object )
 | 
			
		||||
GENERIC# set-x! 1 ( object x -- object )
 | 
			
		||||
GENERIC# set-y! 1 ( object y -- object )
 | 
			
		||||
| 
						 | 
				
			
			@ -46,4 +46,4 @@ M: rect width  ( rect -- width  ) dim>> first  ;
 | 
			
		|||
M: rect height ( rect -- height ) dim>> second ;
 | 
			
		||||
 | 
			
		||||
M: rect set-x! ( rect x -- rect ) over loc>> set-first  ;
 | 
			
		||||
M: rect set-y! ( rect y -- rect ) over loc>> set-second ;
 | 
			
		||||
M: rect set-y! ( rect y -- rect ) over loc>> set-second ;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue