diff options
author | Y. Sapir <yasapir@gmail.com> | 2014-04-28 02:13:50 +0400 |
---|---|---|
committer | Y. Sapir <yasapir@gmail.com> | 2014-04-28 02:13:50 +0400 |
commit | ad03a88733ce0f5e687a22609df6cf9dd54b3a9b (patch) | |
tree | 43b42dc7987b919b0a20a336e84f5c9501b3b94f /xs/lib | |
parent | e005ff32c40f9f1b70e6351ae764507b9e4a1775 (diff) |
Add xsp wrapper for Pointf class.
Diffstat (limited to 'xs/lib')
-rw-r--r-- | xs/lib/Slic3r/XS.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xs/lib/Slic3r/XS.pm b/xs/lib/Slic3r/XS.pm index 2c6a985b7..d30f84299 100644 --- a/xs/lib/Slic3r/XS.pm +++ b/xs/lib/Slic3r/XS.pm @@ -28,6 +28,11 @@ our @ISA = 'Slic3r::Point'; sub DESTROY {} +package Slic3r::Pointf; +use overload + '@{}' => sub { [ $_[0]->x, $_[0]->y ] }, #, + 'fallback' => 1; + package Slic3r::Pointf3; use overload '@{}' => sub { [ $_[0]->x, $_[0]->y, $_[0]->z ] }, #, |