Ejemplo n.º 1
0
    /// <summary>
    ///A process translated from the tcl scripts
    /// </summary>
    public static void fit( )
    {
        //Global Variable Declaration Skipped
        Kpoints.Reset();
        Cpoints.Reset();
        i = 0;
        while ((i) < numberOfOutputPoints)
        {
            t = (numberOfInputPoints - offset) / (numberOfOutputPoints - 1) * i;
            Kpoints.InsertPoint((int)i, (double)aKSplineX.Evaluate((double)t), (double)aKSplineY.Evaluate((double)t), (double)aKSplineZ.Evaluate((double)t));
            Cpoints.InsertPoint((int)i, (double)aCSplineX.Evaluate((double)t), (double)aCSplineY.Evaluate((double)t), (double)aCSplineZ.Evaluate((double)t));
            i = i + 1;
        }

        profileKData.Modified();
        profileCData.Modified();
    }