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

            return(curve.GetCurvePoints());
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 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));
        }