Exemplo n.º 1
0
        public void SetInterpolation(float *fromPtr, float *toPtr, int interpolationCount, float range)
        {
            SetInterpolationCount(interpolationCount);
            InterpolatedValues.Assign(0, fromPtr, interpolationCount);

            range = 1f / range;
            for (int i = 0; i < interpolationCount; i++)
            {
                StepValues[i] = (toPtr[i] - fromPtr[i]) * range;
            }
        }