Add xsp wrapper for Pointf class.

This commit is contained in:
Y. Sapir committed 2014-04-28 01:13:50 +03:00
1 parent e005ff32c4
commit ad03a88733
3 files changed
+17 -1

No files matched your search

+5
View File
@@ -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 ] }, #,