Assets/SplineTool/Scripts/CorgiSpline/Spline.cs
/// <summary>
/// Matches the input index to return the anchor point index, given the count of anchor points
/// returned by GetPointCountIgnoreHandles().
/// </summary>
/// <param name="index"></param>
/// <param name="includeHandles"></param>
/// <returns></returns>
Matches the input index to return the anchor point index, given the count of anchor points
returned by GetPointCountIgnoreHandles().
Matches the input index to return the anchor point index given the count of anchor points returned by GetPointCountIgnoreHandles () .
public int GetPointIgnoreHandles(int index)
        {
            if(GetSplineMode() == SplineMode.Bezier)
            {
                return index * 3; 
            }
            else
            {
                return index;
            }
        }
public int GetPointIgnoreHandles ( int index ) { if ( GetSplineMode ( ) == SplineMode . Bezier ) { return index * 3 ; } else { return index ; } }
Matches the input index to return the anchor point index, given the count of anchor points
returned by GetPointCountIgnoreHandles().
Matches the input index to return the anchor point index given the count of anchor points returned by GetPointCountIgnoreHandles () .
None
index
int
None
includeHandles
None