C# Class Drought.World.HeightMap

Show file Open project: kiniry-teaching/UCD Class Usage Examples

Public Methods

Method Description
HeightMap ( Level theLevel ) : System
HeightMap ( int width, int height ) : System
clone ( ) : HeightMap
getHeight ( float x, float y ) : float
getMapHeight ( ) : int
getMapWidth ( ) : int
getPositionAt ( float x, float y ) : Vector3
initalise ( ) : void
setHeight ( float x, float y, float height ) : void

Private Methods

Method Description
distanceFromALine ( float pX, float pY, float lX0, float lY0, float lX1, float lY1 ) : float

Method Details

HeightMap() public method

public HeightMap ( Level theLevel ) : System
theLevel Level
return System

HeightMap() public method

public HeightMap ( int width, int height ) : System
width int
height int
return System

clone() public method

public clone ( ) : HeightMap
return HeightMap

getHeight() public method

public getHeight ( float x, float y ) : float
x float
y float
return float

getMapHeight() public method

public getMapHeight ( ) : int
return int

getMapWidth() public method

public getMapWidth ( ) : int
return int

getPositionAt() public method

public getPositionAt ( float x, float y ) : Vector3
x float
y float
return Vector3

initalise() public method

public initalise ( ) : void
return void

setHeight() public method

public setHeight ( float x, float y, float height ) : void
x float
y float
height float
return void