mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
10 lines
202 B
C++
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);
|
|
}
|