From 291555088772076d94dd73f802f1469cf121d62d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 13 Mar 2003 14:29:16 +0000 Subject: [PATCH] Reverted Don's changed of sqrtf to sqrt. Don't understand why the change was required, suggest a problem elsewhere which should be fixed, *not* by modification of Vec2. --- include/osg/Vec2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osg/Vec2 b/include/osg/Vec2 index d592eb665..57e685a0c 100644 --- a/include/osg/Vec2 +++ b/include/osg/Vec2 @@ -136,7 +136,7 @@ class Vec2 /// Length of the vector = sqrt( vec . vec ) inline float length() const { - return sqrt( _v[0]*_v[0] + _v[1]*_v[1] ); + return sqrtf( _v[0]*_v[0] + _v[1]*_v[1] ); } /// Length squared of the vector = vec . vec