mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Generate GCODE
This commit is contained in:
@@ -40,4 +40,11 @@ sub coincides_with {
|
||||
return $self->x == $point->x && $self->y == $point->y; #=
|
||||
}
|
||||
|
||||
sub distance_to {
|
||||
my $self = shift;
|
||||
my ($point) = @_;
|
||||
|
||||
return sqrt(($point->x - $self->x)**2 + ($point->y - $self->y)**2); #-
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Reference in New Issue
Block a user