Package vash.value

Examples of vash.value.Wrapping


    _values[0] = this.center = center;
    _values[1] = this.angle = angle;
  }
 
  public PolarTheta(double x, double y, double angle) {
    this(new Position(x, y), new Wrapping(angle, -1, 1));
  }
View Full Code Here


  }
 
  public PolarTheta(Seed s) {
    super(2, 0);
    _values[0] = this.center = new Position(s);
    _values[1] = this.angle = new Wrapping(s, -1, 1);
  }
View Full Code Here

    _values[1] = this.phase = phase;
    _children[0] = child;
  }

  public Sinc(double freq, double phase, OperationNode child) {
    this(new Bounded(freq, MIN_FREQ, MAX_FREQ), new Wrapping(phase, MIN_PHASE, MAX_PHASE), child);
  }
View Full Code Here

  public Sinc(double freq, double phase, OperationNode child) {
    this(new Bounded(freq, MIN_FREQ, MAX_FREQ), new Wrapping(phase, MIN_PHASE, MAX_PHASE), child);
  }
 
  public Sinc(Seed s) {
    this(new Bounded(s, MIN_FREQ, MAX_FREQ), new Wrapping(s, MIN_PHASE, MAX_PHASE), null);
  }
View Full Code Here

    _values[1] = this.phase = phase;
    _children[0] = child;
  }

  public Sine(double freq, double phase, OperationNode child) {
    this(new Bounded(freq, MIN_FREQ, MAX_FREQ), new Wrapping(phase, MIN_PHASE, MAX_PHASE), child);
  }
View Full Code Here

  public Sine(double freq, double phase, OperationNode child) {
    this(new Bounded(freq, MIN_FREQ, MAX_FREQ), new Wrapping(phase, MIN_PHASE, MAX_PHASE), child);
  }
 
  public Sine(Seed s) {
    this(new Bounded(s, MIN_FREQ, MAX_FREQ), new Wrapping(s, MIN_PHASE, MAX_PHASE), null);
  }
View Full Code Here

 
  public RadialGradient(double x, double y, double w, double h, double angle) {
    this(new Position(x, y),
        new Bounded(w, MIN_SIZE, MAX_SIZE),
        new Bounded(h, MIN_SIZE, MAX_SIZE),
        new Wrapping(angle, MIN_ANGLE, MAX_ANGLE));
  }
View Full Code Here

 
  public RadialGradient(Seed s) {
    this(new Position(s),
        new Bounded(s, MIN_SIZE, MAX_SIZE),
        new Bounded(s, MIN_SIZE, MAX_SIZE),
        new Wrapping(s, MIN_ANGLE, MAX_ANGLE));
  }
View Full Code Here

    _values[3] = this.ratio = ratio;
    this.n_points = n_points;
  }
 
  public Flower(double x, double y, double angle, double size, double ratio, int n_points) {
    this(new Position(x, y), new Wrapping(angle, 0, 360), new Bounded(size, 0, MAX_SIZE), new Bounded(ratio, 0, 1), n_points);
  }
View Full Code Here

  }
 
  public Flower(Seed s) {
    super(4, 0);
    _values[0] = this.center = new Position(s);
    _values[1] = this.angle = new Wrapping(s, 0, 360);
    _values[2] = this.size = new Bounded(s, 0.0, MAX_SIZE);
    _values[3] = this.ratio = new Bounded(s, 0.0, 1.0);
    this.n_points = (int)(s.nextDouble() * 11.0) + 1;
  }
View Full Code Here

TOP

Related Classes of vash.value.Wrapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.