mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Ported Slic3r::BridgeDetector to XS
This commit is contained in:
parent
36825e0134
commit
379cde30e2
22 changed files with 539 additions and 307 deletions
|
@ -207,23 +207,6 @@ sub polygon_is_convex {
|
|||
return 1;
|
||||
}
|
||||
|
||||
sub deg2rad {
|
||||
my ($degrees) = @_;
|
||||
return PI() * $degrees / 180;
|
||||
}
|
||||
|
||||
sub rad2deg {
|
||||
my ($rad) = @_;
|
||||
return $rad / PI() * 180;
|
||||
}
|
||||
|
||||
sub rad2deg_dir {
|
||||
my ($rad) = @_;
|
||||
$rad = ($rad < PI) ? (-$rad + PI/2) : ($rad + PI/2);
|
||||
$rad += PI if $rad < 0;
|
||||
return rad2deg($rad);
|
||||
}
|
||||
|
||||
sub rotate_points {
|
||||
my ($radians, $center, @points) = @_;
|
||||
$center //= [0,0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue