Assets/SplineTool/Scripts/CorgiSpline/Spline.cs
/// <summary>
/// Reverses the ordering of the internal Points array.
/// </summary>
Reverses the ordering of the internal Points array.
Reverses the ordering of the internal Points array .
public void ReversePoints()
        {
            var point_count = Points.Length;
            var point_count_half = point_count / 2;
            for (var i = 0; i < point_count_half; ++i)
            {
                var index_first = i;
                var index_last = point_count - 1 - i;
                var point_first = Points[index_first];
                var point_last = Points[index_last];
                Points[index_first] = point_last;
                Points[index_last] = point_first;
            }
        }
public void ReversePoints ( ) { var point_count = Points . Length ; var point_count_half = point_count / 2 ; for ( var i = 0 ; i < point_count_half ; ++ i ) { var index_first = i ; var index_last = point_count - 1 - i ; var point_first = Points [ index_first ] ; var point_last = Points [ index_last ] ; Points [ index_first ] = point_last ; Points [ index_last ] = point_first ; } }
Reverses the ordering of the internal Points array.
Reverses the ordering of the internal Points array .