org.xith3d.terrain.legacy
Interface TerrainSampleInterface


public interface TerrainSampleInterface

TODO: Insert comments here.


Method Summary
 int getScale()
           
 int getXDim()
           
 float getXOrg()
           
 int getZDim()
           
 float getZOrg()
           
 float sample(int x, int z)
           
 

Method Detail

getScale

int getScale()
Returns:
the power of 2 scale that this data represents.

sample

float sample(int x,
             int z)
Returns:
the height value for the world coordinates specified

getXOrg

float getXOrg()
Returns:
the world X coordinate for the origin of this data

getZOrg

float getZOrg()
Returns:
the world Z coordinate for the origin of this data

getXDim

int getXDim()
Returns:
The number of units in the X dimension. The width of the sample would be considered getXDim() << getScale

getZDim

int getZDim()
Returns:
The number of units in the Z dimension. The width of the sample would be considered getXDim() << getScale