Example #1
0
        public BSpline(BSplineFragment bSpline)
        {
            this.bSpline = bSpline;
            for (var i = 0.0; i < 1; i += step)
            {
                var point = bSpline.Value(i);
                points.Add(point);

                minX = System.Math.Min(minX, point.X);
                maxX = System.Math.Max(maxX, point.X);
            }
        }
Example #2
0
        public BSplineXtoY(Vector2D[] points, int detail)
        {
            bSplineFragment = new BSplineFragment(points);
            this.detail     = detail;

            this.points = new Vector2D[detail + 1];

            for (var i = 0; i <= detail; i++)
            {
                double i2 = (double)i / detail;
                this.points[i] = bSplineFragment.Value(i2);

                startX = System.Math.Min(startX, this.points[i].X);
                endX   = System.Math.Max(startX, this.points[i].X);
            }
        }
Example #3
0
 public OneToOneTimerBSpline(BSplineFragment bSplinek, int timerMax)
 {
 }