Package vash.value

Examples of vash.value.Bounded


    _children[0] = v;
  }
 
  public Spiral(double x, double y, double n, double b, OperationNode v) {
    this(new Position(x, y),
        new Bounded(n, MIN_N, MAX_N),
        new Bounded(b, MIN_B, MAX_B),
        v);
  }
View Full Code Here


        v);
  }

  public Spiral(Seed s) {
    this(new Position(s),
        new Bounded(s, MIN_N, MAX_N),
        new Bounded(s, MIN_B, MAX_B),
        null);
  }
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

    _children[1] = b;
  }

  public Squircle(double x, double y, double r, double n, OperationNode a, OperationNode b) {
    this(new Position(x, y),
        new Bounded(r, MIN_R, MAX_R),
        new Bounded(n, MIN_N, MAX_N),
        a, b);
  }
View Full Code Here

        a, b);
  }

  public Squircle(Seed s) {
    this(new Position(s),
        new Bounded(s, MIN_R, MAX_R),
        new Bounded(s, MIN_N, MAX_N),
        null, null);
  }
View Full Code Here

TOP

Related Classes of vash.value.Bounded

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.