geometry.cpp
changeset 824 36eb4b8f409e
parent 798 d251c7b2de54
child 835 31841b366d5e
     1.1 --- a/geometry.cpp	Fri Feb 19 13:47:03 2010 +0000
     1.2 +++ b/geometry.cpp	Thu Feb 25 11:03:52 2010 +0000
     1.3 @@ -48,6 +48,11 @@
     1.4      return false;	
     1.5  }
     1.6  
     1.7 +qreal distance (const QPointF &p, const QPointF &q)
     1.8 +{
     1.9 +	return sqrt (p.x()*q.x() + p.y()*q.y());
    1.10 +}
    1.11 +
    1.12  Vector::Vector ():QPointF ()
    1.13  {
    1.14  }