Esempio n. 1
0
 double IBezierFragment.run(double x)
 {
     return(BezierFunc.GetY(
                x,
                _from.x, _from.y,
                _b.x, _b.y,
                _c.x, _c.y,
                _to.x, _to.y));
 }
Esempio n. 2
0
 public Vector3 GetValueByProgress(double progress)
 {
     if (_func != null)
     {
         progress = _func(progress);
     }
     X       = (float)progress;
     From    = _from(this);
     To      = _to(this);
     Control = _control(this);
     return(BezierFunc.GetPointQuadratic(X, From, Control, To));
 }