Began merging the jam branch into the development (read more)
The list of changes committed: * Removed SimpleRNG * Added Timer (for debugging) * Added BoundingBox * Added floating point snapToBase() * Added error check to Vector2::Normalize() * Updated makefiles, project compiles
This commit is contained in:
@@ -32,6 +32,10 @@ int snapToBase(int base, int x) {
|
||||
return x / base * base;
|
||||
}
|
||||
|
||||
double snapToBase(double base, double x) {
|
||||
return floor(x / base) * base;
|
||||
}
|
||||
|
||||
std::string truncatePath(std::string pathname) {
|
||||
return std::string(
|
||||
std::find_if(
|
||||
|
||||
Reference in New Issue
Block a user