mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Better polymorphism for ExPolygon::XS->rotate
This commit is contained in:
		
							parent
							
								
									28a4f1a61e
								
							
						
					
					
						commit
						06de21b154
					
				
					 6 changed files with 32 additions and 21 deletions
				
			
		|  | @ -15,15 +15,6 @@ package Slic3r::ExPolygon::XS; | |||
| use overload | ||||
|     '@{}' => sub { $_[0]->arrayref }; | ||||
| 
 | ||||
| # 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); | ||||
| } | ||||
| 
 | ||||
| package Slic3r::ExPolygon::Collection; | ||||
| use overload | ||||
|     '@{}' => sub { $_[0]->arrayref }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci