mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
Generate GCODE
This commit is contained in:
parent
74b4d8d612
commit
a5ba0af7ef
6 changed files with 139 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue