Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-12 11:14:22 +0000
committerStijn Buys <ingar@osirion.org>2008-10-12 11:14:22 +0000
commit18383a5fc596bf9546f14d7393ee66c57720b116 (patch)
tree5382c3b380a72149eabbc4f75a2c5744b895e48a /src/math/functions.h
parent0d831968949b1119db48530a86c2d1651c6cbfc6 (diff)
libmath API cleanup
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;
}