C# Class Dwarrowdelf.TerrainGen.DiamondSquare

Datei anzeigen Open project: tomba/dwarrowdelf Class Usage Examples

Public Methods

Method Description
Render ( ArrayGrid2D grid, CornerData corners, double range, double h, Random random, double &min, double &max ) : void

Private Methods

Method Description
Diamond ( Context ctx, IntVector2 middle, int radius ) : void
GetGridValue ( Context ctx, IntVector2 p ) : double

Get value from the grid, or if the point is outside the grid, a value averaged between two corners

GetRandom ( Context ctx, double range ) : double
HeightMap ( Context ctx ) : void
Rectangle ( Context ctx, IntVector2 middle, int radius ) : void

Method Details

Render() public static method

public static Render ( ArrayGrid2D grid, CornerData corners, double range, double h, Random random, double &min, double &max ) : void
grid ArrayGrid2D
corners CornerData
range double
h double
random System.Random
min double
max double
return void