ofVec2f squareDistance

Hi guys,

I am using oF version 0.72 and looking at the squareDistance function.
It says (at line 555):

inline float ofVec2f::squareDistance( const ofVec2f& pnt ) const {
float vx = x-pnt.x;
float vy = y-pnt.y;
return vx*vx + vy*vy;
}

shouldn’t that be?

inline float ofVec2f::squareDistance( const ofVec2f& pnt ) const {
float vx = x-pnt.x;
float vy = y-pnt.y;
return sqrt(vx*vx + vy*vy);
}

Thanks for the feedback.

Cheers,
Wim

Ok, never mind…

didn’t see the distance function…

my bad… sorry guys.