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

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


Author: matju
Date: Sat Oct 17 00:17:12 2009
New Revision: 4224

Log:
gaah

Modified:
    trunk/base/number.c

Modified: trunk/base/number.c
==============================================================================
--- trunk/base/number.c (original)
+++ trunk/base/number.c Sat Oct 17 00:17:12 2009
@@ -270,8 +270,8 @@
   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)),
-                 (float64)a.real() * sin((float64)a.imag() * (M_PI / 18000)));
+  return Plex<T>((float64)a.real() * sin((float64)a.imag() * (M_PI / 18000)),
+                 (float64)a.real() * cos((float64)a.imag() * (M_PI / 18000)));
 }
 /*
 template <class T> inline Plex<T> cx_atan2 (Plex<T>& a, Plex<T>& b) {



More information about the Gridflow-cvs mailing list