diff -r 0bba81dde1bc -r 36eb4b8f409e geometry.cpp --- a/geometry.cpp Fri Feb 19 13:47:03 2010 +0000 +++ b/geometry.cpp Thu Feb 25 11:03:52 2010 +0000 @@ -48,6 +48,11 @@ return false; } +qreal distance (const QPointF &p, const QPointF &q) +{ + return sqrt (p.x()*q.x() + p.y()*q.y()); +} + Vector::Vector ():QPointF () { }