toon-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Toon-members] TooN helpers.h


From: Gerhard Reitmayr
Subject: [Toon-members] TooN helpers.h
Date: Tue, 14 Apr 2009 15:35:21 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Gerhard Reitmayr <gerhard>      09/04/14 15:35:21

Modified files:
        .              : helpers.h 

Log message:
        norm_sq funtion

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/helpers.h?cvsroot=toon&r1=1.45&r2=1.46

Patches:
Index: helpers.h
===================================================================
RCS file: /cvsroot/toon/TooN/helpers.h,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -b -r1.45 -r1.46
--- helpers.h   14 Apr 2009 06:52:03 -0000      1.45
+++ helpers.h   14 Apr 2009 15:35:21 -0000      1.46
@@ -57,6 +57,11 @@
                return sqrt(v*v);
        }
 
+       template<int Size, class Precision, class Base> inline Precision 
norm_sq(const Vector<Size, Precision, Base>& v)
+       {
+               v*v;
+       }
+
        template<int Size, class Precision, class Base> inline Vector<Size, 
Precision> unit(const Vector<Size, Precision, Base> & v)
        {
                using std::sqrt;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]