Some inlining optimizations.

This commit is contained in:
bubnikv 2016-09-13 09:46:41 +02:00
parent c443f49da3
commit 068f71847e
4 changed files with 3 additions and 14 deletions

View file

@ -44,7 +44,7 @@ class Point
void translate(const Vector &vector);
void rotate(double angle);
void rotate(double angle, const Point &center);
bool coincides_with(const Point &point) const;
bool coincides_with(const Point &point) const { return this->x == point.x && this->y == point.y; }
bool coincides_with_epsilon(const Point &point) const;
int nearest_point_index(const Points &points) const;
int nearest_point_index(const PointConstPtrs &points) const;