[Gridflow-cvs] [svn] commit: r4223 - /trunk/base/number.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sat Oct 17 00:06:09 EDT 2009


Author: matju
Date: Sat Oct 17 00:06:08 2009
New Revision: 4223

Log:
d'ough.

Modified:
    trunk/base/number.c

Modified: trunk/base/number.c
==============================================================================
--- trunk/base/number.c (original)
+++ trunk/base/number.c Sat Oct 17 00:06:08 2009
@@ -267,8 +267,7 @@
 template <class T> inline Plex<T> cx_abssub(const Plex<T>& a, const Plex<T>& b) { Plex<T> v=a-b; return norm(v); }
 
 template <class T> inline Plex<T> gf_c2p(const Plex<T>& a) {
-  //return Plex<T>(hypot(a.real(),a.imag()),atan2(a.real(),a.imag())*(18000 / M_PI));
-  return a;
+  return Plex<T>(hypot(a.real(),a.imag()),atan2(a.real(),a.imag())*(18000 / M_PI));
 }
 template <class T> inline Plex<T> gf_p2c(const Plex<T>& a) {
   return Plex<T>((float64)a.real() * cos((float64)a.imag() * (M_PI / 18000)),



More information about the Gridflow-cvs mailing list