C# 클래스 Dwarrowdelf.TerrainGen.DiamondSquare

파일 보기 프로젝트 열기: tomba/dwarrowdelf 1 사용 예제들

공개 메소드들

메소드 설명
Render ( ArrayGrid2D grid, CornerData corners, double range, double h, Random random, double &min, double &max ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

Render() 공개 정적인 메소드

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
리턴 void