[expression_editor/poincare] Move Up in an ExpressionLayout.

Change-Id: I75fd91233729afd4eb77d8e9d53c102a632643ea
This commit is contained in:
Léa Saviot
2017-12-15 18:10:14 +01:00
parent 96c2f9aeba
commit fc8cd6c06e
29 changed files with 372 additions and 5 deletions

View File

@@ -7,3 +7,7 @@ KDPoint KDPoint::translatedBy(KDPoint other) const {
KDPoint KDPoint::opposite() const {
return KDPoint(-m_x, -m_y);
}
uint16_t KDPoint::squareDistanceTo(KDPoint other) const {
return (m_x-other.x()) * (m_x-other.x()) + (m_y-other.y()) * (m_y-other.y());
}