Example #1
0
 public static CurvePoint[] GetCurvePoints(int resolution, Vector3[] controlPoints, bool closeLoop = false)
 {
     var curve = new CatmullRom(resolution, controlPoints, closeLoop);
     return curve.GetCurvePoints();
 }
Example #2
0
        public static CurvePoint[] GetCurvePoints(int resolution, Vector3[] controlPoints, bool closeLoop = false)
        {
            var curve = new CatmullRom(resolution, controlPoints, closeLoop);

            return(curve.GetCurvePoints());
        }
Example #3
0
 public static Vector3[] GetCurvePositions(int resolution, Vector3[] controlPoints, bool closeLoop = false)
 {
     var catmullRom = new CatmullRom(resolution, controlPoints, closeLoop);
     return GetCurvePositions(catmullRom, resolution, controlPoints);
 }
Example #4
0
        public static Vector3[] GetCurvePositions(int resolution, Vector3[] controlPoints, bool closeLoop = false)
        {
            var catmullRom = new CatmullRom(resolution, controlPoints, closeLoop);

            return(GetCurvePositions(catmullRom, resolution, controlPoints));
        }