Beispiel #1
0
        /// <summary>
        /// Creates a new vertex spline.
        /// </summary>
        static public LinearSpline Linear(bool inbLooped, List <Vector3> inVertices)
        {
            LinearSpline spline = new LinearSpline(inVertices.Count);

            spline.SetLooped(inbLooped);
            spline.SetVertices(inVertices);
            return(spline);
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new vertex spline from the given transforms.
        /// </summary>
        static public LinearSpline Linear(bool inbLooped, Space inSpace, List <Transform> inVertices)
        {
            LinearSpline spline = new LinearSpline(inVertices.Count);

            spline.SetLooped(inbLooped);
            spline.SetVertices(inVertices, inSpace);
            return(spline);
        }
Beispiel #3
0
        /// <summary>
        /// Creates a new vertex spline.
        /// </summary>
        static public LinearSpline Linear(bool inbLooped, params Vector3[] inVertices)
        {
            LinearSpline spline = new LinearSpline(inVertices.Length);

            spline.SetLooped(inbLooped);
            spline.SetVertices(inVertices);
            return(spline);
        }
Beispiel #4
0
        /// <summary>
        /// Creates a new vertex spline from the given transforms.
        /// </summary>
        static public LinearSpline Linear(bool inbLooped, Space inSpace, params Transform[] inVertices)
        {
            LinearSpline spline = new LinearSpline(inVertices.Length);

            spline.SetLooped(inbLooped);
            spline.SetVertices(inVertices, inSpace);
            return(spline);
        }