C# Class Drought.World.HeightMap

Afficher le fichier Open project: kiniry-teaching/UCD Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
distanceFromALine ( float pX, float pY, float lX0, float lY0, float lX1, float lY1 ) : float

Method Details

HeightMap() public méthode

public HeightMap ( Level theLevel ) : System
theLevel Level
Résultat System

HeightMap() public méthode

public HeightMap ( int width, int height ) : System
width int
height int
Résultat System

clone() public méthode

public clone ( ) : HeightMap
Résultat HeightMap

getHeight() public méthode

public getHeight ( float x, float y ) : float
x float
y float
Résultat float

getMapHeight() public méthode

public getMapHeight ( ) : int
Résultat int

getMapWidth() public méthode

public getMapWidth ( ) : int
Résultat int

getPositionAt() public méthode

public getPositionAt ( float x, float y ) : Vector3
x float
y float
Résultat Vector3

initalise() public méthode

public initalise ( ) : void
Résultat void

setHeight() public méthode

public setHeight ( float x, float y, float height ) : void
x float
y float
height float
Résultat void