C# Class TerrainDemo.CDLOD.DefaultHeightMapSource

Inheritance: IHeightMapSource
ファイルを表示 Open project: willcraftia/TestXna Class Usage Examples

Public Methods

Method Description
DefaultHeightMapSource ( float sourceHeights, int width, int height ) : System
GetAreaMinMaxHeight ( int x, int y, int sizeX, int sizeY, float &minHeight, float &maxHeight ) : void
GetHeight ( int x, int y ) : float

Method Details

DefaultHeightMapSource() public method

public DefaultHeightMapSource ( float sourceHeights, int width, int height ) : System
sourceHeights float
width int
height int
return System

GetAreaMinMaxHeight() public method

public GetAreaMinMaxHeight ( int x, int y, int sizeX, int sizeY, float &minHeight, float &maxHeight ) : void
x int
y int
sizeX int
sizeY int
minHeight float
maxHeight float
return void

GetHeight() public method

public GetHeight ( int x, int y ) : float
x int
y int
return float