template<class F>
F Vec2T< F >::l2 void   )  const [inline]

L-2 norm: square root of sum of elements

Definition at line 92 of file vec2t.hpp.

References Vec2T< F >::_v.

Referenced by Vec2T< F >::dir(), and Vec2T< F >::length().

00092 { F sum=F(0); for(int i=0; i<2; i++) sum=sum+_v[i]*_v[i]; return sqrt(sum); }

Generated on Sun Dec 4 18:13:14 2005 for common by  doxygen 1.4.5