Exemple #1
0
 public BezierLineEnumerator(Bezier bez, int numLines)
 {
     numLines    = Mathf.Max(1, numLines);
     this.points = new BezierPointEnumerator(bez, numLines + 1);
     lastPoint   = null;
 }
Exemple #2
0
 public BezierPointEnumerator(Bezier bez, int numPoints)
 {
     this.bez       = bez;
     this.numPoints = Mathf.Max(2, numPoints);
     this.idx       = -1;
 }