Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/functions.h')
-rw-r--r--src/math/functions.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/math/functions.h b/src/math/functions.h
index be6919d..ed013ab 100644
--- a/src/math/functions.h
+++ b/src/math/functions.h
@@ -51,18 +51,18 @@ float degrees360f(float angle);
/// clamp a float to a specified range
inline void clamp(float &value, const float min=0.0f, const float max=1.0f)
{
- if (value < min)
- value = min;
- else if (value > max)
+ if (value < min)
+ value = min;
+ else if (value > max)
value = max;
}
/// return the absolute value of a float
inline float absf(float f)
{
- if (f < 0)
- return -f;
- else
+ if (f < 0)
+ return -f;
+ else
return f;
}