Files
Upsilon/kandinsky/src/point.cpp
Romain Goyet c5916572fe [Kandinsky] Inline very simple operations on KDPoint and KDSize
Change-Id: I35f6bc9450b35b1ab7a0dcadce69dddf932dd23f
2016-08-19 10:51:25 +02:00

10 lines
202 B
C++

#include <kandinsky/point.h>
KDPoint KDPoint::translatedBy(KDPoint other) const {
return KDPoint(m_x+other.x(), m_y+other.y());
}
KDPoint KDPoint::opposite() const {
return KDPoint(-m_x, -m_y);
}