Package gaiasky.scene.record
Class HeightDataPixmap
java.lang.Object
gaiasky.scene.record.HeightDataPixmap
- All Implemented Interfaces:
IHeightData
-
Constructor Summary
ConstructorDescriptionHeightDataPixmap
(com.badlogic.gdx.graphics.Pixmap heightPixmap, Runnable finished) HeightDataPixmap
(com.badlogic.gdx.graphics.Texture texture, Runnable finished) HeightDataPixmap
(String heightTexturePacked, Runnable finished) -
Method Summary
Modifier and TypeMethodDescriptiondouble
getNormalizedHeight
(double u, double v) Gets the height normalized in [0,1] for the given UV coordinates.
-
Constructor Details
-
HeightDataPixmap
-
HeightDataPixmap
-
HeightDataPixmap
-
-
Method Details
-
getNormalizedHeight
public double getNormalizedHeight(double u, double v) Description copied from interface:IHeightData
Gets the height normalized in [0,1] for the given UV coordinates.- Specified by:
getNormalizedHeight
in interfaceIHeightData
- Parameters:
u
- The U coordinate.v
- The V coordinate.- Returns:
- The height value in [0,1].
-