Stellarium 0.14.3
|
This represents a heightmap for viewer-ground collision. More...
#include <Heightmap.hpp>
Public Member Functions | |
Heightmap (OBJ *obj) | |
Construct a heightmap from a loaded OBJ mesh. More... | |
float | getHeight (const float x, const float y) const |
Get z Value at (x,y) coordinates. More... | |
void | setNullHeight (float h) |
set/retrieve default height More... | |
float | getNullHeight () const |
This represents a heightmap for viewer-ground collision.
Definition at line 27 of file Heightmap.hpp.
Heightmap::Heightmap | ( | OBJ * | obj | ) |
Construct a heightmap from a loaded OBJ mesh.
The mesh is stored as reference and used for calculations.
obj | Mesh for building the heightmap. |
float Heightmap::getHeight | ( | const float | x, |
const float | y | ||
) | const |
Get z Value at (x,y) coordinates.
In case of ambiguities always returns the maximum height.
x | x-value |
y | y-value |
|
inline |
set/retrieve default height
Definition at line 46 of file Heightmap.hpp.