Package util
Class ElevationGenerator
java.lang.Object
util.ElevationGenerator
Uses Perlin noise to generate the heights of each tile in the maze grid.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double[][]
generateElevations
(int width, int height, Random rand) Return a 2D double array with given `width` and `height` representing the elevations of each tile, calculated using Perlin noise.(package private) static double[]
randomUnitVector
(Random rand) Return a random 2D unit vector