mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	ExPolygon::XS->rotate()
This commit is contained in:
		
							parent
							
								
									1506907212
								
							
						
					
					
						commit
						87a5de193d
					
				
					 7 changed files with 86 additions and 19 deletions
				
			
		|  | @ -17,4 +17,13 @@ use overload | |||
| 
 | ||||
| sub clone { (ref $_[0])->_clone($_[0]) } | ||||
| 
 | ||||
| # to handle legacy code | ||||
| sub rotate { | ||||
|     my $self = shift; | ||||
|     my ($angle, $center) = @_; | ||||
|      | ||||
|     $center = Slic3r::Point::XS->new(@$center) if ref($center) ne 'Slic3r::Point::XS'; | ||||
|     $self->_rotate($angle, $center); | ||||
| } | ||||
| 
 | ||||
| 1; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci