Exemple #1
0
        /// <summary>
        /// Creates a new CSpline.
        /// </summary>
        static public CSpline CSpline(bool inbLooped, List <CSplineVertex> inVertices)
        {
            CSpline spline = new CSpline(inVertices.Count);

            spline.SetAsCSpline();
            spline.SetLooped(inbLooped);
            spline.SetVertices(inVertices);
            return(spline);
        }
Exemple #2
0
        /// <summary>
        /// Creates a new CSpline.
        /// </summary>
        static public CSpline CSpline(bool inbLooped, params CSplineVertex[] inVertices)
        {
            CSpline spline = new CSpline(inVertices.Length);

            spline.SetAsCSpline();
            spline.SetLooped(inbLooped);
            spline.SetVertices(inVertices);
            return(spline);
        }