9 #ifndef VRECKO_NATURE_TERRAIN_TERRAINUTILITY_H
10 #define VRECKO_NATURE_TERRAIN_TERRAINUTILITY_H
28 static void Info(
const std::string& message);
34 static void Error(
const std::string& message);
41 static inline void SetPointHeight(osg::Vec3& point,
float height) { point.set(point.x(), height, point.z()); }
48 static std::string
LowerCase(
const std::string& input);
55 static std::string
UpperCase(
const std::string& input);
76 static inline float LinearMapping(
float fromMin,
float fromMax,
float fromX,
float toMin,
float toMax)
78 return toMin + (((toMax - toMin) * (fromX - fromMin)) / (fromMax - fromMin));
89 static void ListDirectory(
const std::string& dirpath,
const std::string& mask, std::vector<std::string>* fileNames);