Ported some methods including add_model_object() and apply_config() to XS

This commit is contained in:
Alessandro Ranellucci 2014-11-09 12:25:59 +01:00
parent 6b4015f9ac
commit 3e4c572164
14 changed files with 312 additions and 254 deletions

View file

@ -40,6 +40,12 @@ Point::translate(double x, double y)
this->y += y;
}
void
Point::translate(const Point &vector)
{
this->translate(vector.x, vector.y);
}
void
Point::rotate(double angle, const Point &center)
{