2013-07-15 20:57:22 +00:00
|
|
|
#ifndef slic3r_MultiPoint_hpp_
|
|
|
|
#define slic3r_MultiPoint_hpp_
|
|
|
|
|
|
|
|
#include "Point.hpp"
|
|
|
|
#include <algorithm>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
class MultiPoint
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Points points;
|
|
|
|
void scale(double factor);
|
|
|
|
void translate(double x, double y);
|
|
|
|
void rotate(double angle, Point* center);
|
|
|
|
void reverse();
|
2013-09-02 20:33:03 +00:00
|
|
|
Point* first_point() const;
|
|
|
|
virtual Point* last_point() const = 0;
|
2013-09-13 12:48:40 +00:00
|
|
|
|
|
|
|
#ifdef SLIC3RXS
|
|
|
|
void from_SV(SV* poly_sv);
|
|
|
|
void from_SV_check(SV* poly_sv);
|
|
|
|
SV* to_AV();
|
|
|
|
SV* to_SV_pureperl() const;
|
|
|
|
#endif
|
2013-07-15 20:57:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|