Index: trunk/psLib/src/math/psPolynomial.c
===================================================================
--- trunk/psLib/src/math/psPolynomial.c	(revision 6199)
+++ trunk/psLib/src/math/psPolynomial.c	(revision 6204)
@@ -7,6 +7,6 @@
 *  polynomials.  It also contains a Gaussian functions.
 *
-*  @version $Revision: 1.139 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-01-26 02:44:56 $
+*  @version $Revision: 1.140 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-01-26 21:10:22 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -168,5 +168,5 @@
         psPolynomial1D **chebPolys = (psPolynomial1D **) psAlloc(numPolys * sizeof(psPolynomial1D *));
         for (psS32 i = 0; i < numPolys; i++) {
-            chebPolys[i] = psPolynomial1DAlloc(i, PS_POLYNOMIAL_ORD);
+            chebPolys[i] = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, i);
             chebPolys[i]->coeff[i] = 1;
         }
@@ -175,5 +175,5 @@
         psPolynomial1D **chebPolys = (psPolynomial1D **) psAlloc(numPolys * sizeof(psPolynomial1D *));
         for (psS32 i = 0; i < numPolys; i++) {
-            chebPolys[i] = psPolynomial1DAlloc(i, PS_POLYNOMIAL_ORD);
+            chebPolys[i] = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, i);
         }
 
@@ -615,9 +615,9 @@
  *****************************************************************************/
 psPolynomial1D* psPolynomial1DAlloc(
-    unsigned int n,
-    psPolynomialType type)
+    psPolynomialType type,
+    unsigned int nX)
 {
     //PS_ASSERT_INT_NONNEGATIVE(n, NULL);
-    psU32 nOrder = n;
+    psU32 nOrder = nX;
     psPolynomial1D *newPoly = (psPolynomial1D* ) psAlloc(sizeof(psPolynomial1D));
     psMemSetDeallocator(newPoly, (psFreeFunc) polynomial1DFree);
@@ -639,7 +639,8 @@
 }
 
-psPolynomial2D* psPolynomial2DAlloc( unsigned int nX,
-                                     unsigned int nY,
-                                     psPolynomialType type)
+psPolynomial2D* psPolynomial2DAlloc(
+    psPolynomialType type,
+    unsigned int nX,
+    unsigned int nY)
 {
     //PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
@@ -676,8 +677,9 @@
 }
 
-psPolynomial3D* psPolynomial3DAlloc( unsigned int nX,
-                                     unsigned int nY,
-                                     unsigned int nZ,
-                                     psPolynomialType type)
+psPolynomial3D* psPolynomial3DAlloc(
+    psPolynomialType type,
+    unsigned int nX,
+    unsigned int nY,
+    unsigned int nZ)
 {
     //PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
@@ -724,9 +726,10 @@
 }
 
-psPolynomial4D* psPolynomial4DAlloc( unsigned int nX,
-                                     unsigned int nY,
-                                     unsigned int nZ,
-                                     unsigned int nT,
-                                     psPolynomialType type)
+psPolynomial4D* psPolynomial4DAlloc(
+    psPolynomialType type,
+    unsigned int nX,
+    unsigned int nY,
+    unsigned int nZ,
+    unsigned int nT)
 {
     //PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
