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

L-2 norm: square root of sum of elements

Definition at line 95 of file vec3t.hpp.

References Vec3T< F >::_v.

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

00095 { F sum=F(0); for(int i=0; i<3; 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