aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/math/percentage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/math/percentage.h')
-rw-r--r--src/libjin/math/percentage.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/libjin/math/percentage.h b/src/libjin/math/percentage.h
index a9fdc4e..41b311a 100644
--- a/src/libjin/math/percentage.h
+++ b/src/libjin/math/percentage.h
@@ -5,32 +5,32 @@
namespace JinEngine
{
- namespace Math
- {
+ namespace Math
+ {
- class Percentage
- {
- public:
- Percentage(float v)
- {
- value = clamp<float>(v, 0, 1);
- }
+ class Percentage
+ {
+ public:
+ Percentage(float v)
+ {
+ value = clamp<float>(v, 0, 1);
+ }
- Percentage(const Percentage& p)
- {
- value = p.value;
- }
+ Percentage(const Percentage& p)
+ {
+ value = p.value;
+ }
- void operator = (const Percentage& p)
- {
- value = p.value;
- }
+ void operator = (const Percentage& p)
+ {
+ value = p.value;
+ }
- float value;
+ float value;
- };
+ };
- }
+ }
}
#endif \ No newline at end of file