Index: trunk/psLib/src/math/psSpline.c
===================================================================
--- trunk/psLib/src/math/psSpline.c	(revision 2433)
+++ trunk/psLib/src/math/psSpline.c	(revision 2439)
@@ -7,6 +7,6 @@
  *  polynomials.  It also contains a Gaussian functions.
  *
- *  @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-11-24 21:59:43 $
+ *  @version $Revision: 1.70 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-11-24 22:33:21 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -2112,6 +2112,8 @@
      the spline fit functions require F32 and F64.
  *****************************************************************************/
-float psSpline1DEval(const psSpline1D *spline,
-                     float x)
+float psSpline1DEval(
+    float x,
+    const psSpline1D *spline
+)
 {
     PS_PTR_CHECK_NULL(spline, NAN);
@@ -2144,6 +2146,8 @@
 // XXX: The spline eval functions require input and output to be F32.
 // however the spline fit functions require F32 and F64.
-psVector *psSpline1DEvalVector(const psVector *x,
-                               const psSpline1D *spline)
+psVector *psSpline1DEvalVector(
+    const psSpline1D *spline,
+    const psVector *x
+)
 {
     PS_PTR_CHECK_NULL(spline, NULL);
@@ -2157,9 +2161,15 @@
     if (x->type.type == PS_TYPE_F32) {
         for (i=0;i<x->n;i++) {
-            tmpVector->data.F32[i] = psSpline1DEval(spline, x->data.F32[i]);
+            tmpVector->data.F32[i] = psSpline1DEval(
+                                         x->data.F32[i],
+                                         spline
+                                     );
         }
     } else if (x->type.type == PS_TYPE_F64) {
         for (i=0;i<x->n;i++) {
-            tmpVector->data.F32[i] = psSpline1DEval(spline, (float) x->data.F64[i]);
+            tmpVector->data.F32[i] = psSpline1DEval(
+                                         (float) x->data.F64[i],
+                                         spline
+                                     );
         }
     } else {
