Пример #1
0
 private List<DataPoint> sampleABezierCurve(BezierParametricCurveElement curve)
 {
     double stepSize = 0.002;
     int step = 500;
     double parametricValue = 0;
     List<DataPoint> pts = new List<DataPoint>();
     int count = 0;
     while (count++ < step)
     {
         pts.Add(curve.calculatePoint(new DoubleExtension(parametricValue)));
         parametricValue += stepSize;
     }
     return pts;
 }
 public BezierCurveInterpolatedData(BezierCurveParam curveParam)
 {
     pointList = curveParam.PointList;
     bezierCurve = new BezierParametricCurveElement(pointList);
 }