diff options
author | chai <chaifix@163.com> | 2020-02-11 11:29:07 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-02-11 11:29:07 +0800 |
commit | 160e1299ef3d95f8e8c48706d7f61dd3dc6c6b60 (patch) | |
tree | abe5ae5242d9cc6caf6edf103e662c44e978fca0 /src/libjin/math/percentage.h | |
parent | e095043485d1d298571af6d9eca7f0db9009ea7a (diff) |
Diffstat (limited to 'src/libjin/math/percentage.h')
-rw-r--r-- | src/libjin/math/percentage.h | 40 |
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 |