Bug 189607 2D+ Curve Fitting Line does not work correctly [0001]
Description: 2D+ Curve Fitting Line does not work correctly. Build number: 2.2.0.v20070529-1039 Steps to reproduce: 1. Preview the attached design file. Expected result: Curve Fitting Line for 2D+ works corrctly. Actual result: See the screenshot. Error log: N/A
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/CurveRenderer.java
if ( iNumberOfPoints < 2 )
			{
				return 0.0f;
			}
			int i = 0, iMiddle;
			int iRight = iNumberOfPoints - 1;
			while ( i + 1 < iRight )
			{
				iMiddle = ( i + iRight ) / 2;
				if ( iMiddle <= x )
				{
					i = iMiddle;
				}
				else
				{
					iRight = iMiddle;
				}
			}
			final double t = ( x - i );
			return faA[i] * t * t * t + faB[i] * t * t + faC[i] * t + fa[i];
		}
	}
	private static boolean computeSpline( double t, double[] faXY, Spline spx,
			Spline spy )
	{
		if ( spx == null || spy == null )
		{
			return false;
		}
		faXY[0] = spx.computeValue( t );