Blame view

build3/kandinsky/src/point.cpp 202 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
  #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);
  }