Package Hexel.generation.terrainGenerator.typeMaps.ellipse

Examples of Hexel.generation.terrainGenerator.typeMaps.ellipse.EllipsePoint


      return h;
    }
    else {
      double h = 0;
      if (tmg.mountainGen.isInside(x, y, tmp)){
        EllipsePoint e = tmg.mountainGen.getEllipsePoint(x, y, tmp);
        double height = 10+5*Util.hashToGaussian(Util.hash(seed, e.cx, e.cy));
        if (height < 2)
          height = 2;
        double p = (e.percentToR2*.8+e.percentToR1*.2);
        if (p > 1)
          p = 1;
        h += height*(1-p);
      }
      if (tmg.valleyGen.isInside(x, y, tmp)){
        EllipsePoint e = tmg.valleyGen.getEllipsePoint(x, y, tmp);
        double height = 10+5*Util.hashToGaussian(Util.hash(seed, e.cx, e.cy));
        if (height < 2)
          height = 2;
        double p = (e.percentToR2*.5+e.percentToR1*.5);
        if (p > 1)
View Full Code Here

TOP

Related Classes of Hexel.generation.terrainGenerator.typeMaps.ellipse.EllipsePoint

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.