Ejemplo n.º 1
0
 public PathEnumerator(BezierRenderer bezier, int sampleCount, Vector2 range)
 {
     this.Range = new Vector2(Mathf.Clamp01(range[0]), Mathf.Clamp01(range[1]));
     if (this.Range[1] < this.Range[0])
     {
         this.Range = new Vector2(this.Range[1], this.Range[0]);
     }
     this.Count = sampleCount;
     this.Index = -1;
     this.Path  = bezier;
 }
Ejemplo n.º 2
0
 public PathEnumerator(BezierRenderer bezier, int sampleCount) :
     this(bezier, sampleCount, new Vector2(0.0f, 1.0f))
 {
 }