Added terrain generation using FastNoiseLite
This commit is contained in:
24
include/Utilities.h
Normal file
24
include/Utilities.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef UTILITIES
|
||||
#define UTILITIES
|
||||
|
||||
|
||||
class Utilities
|
||||
{
|
||||
public:
|
||||
Utilities()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static float degToRad(int degrees)
|
||||
{
|
||||
return 3.14 / 180 * degrees; // Only the first three digits of pi
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user