aboutsummaryrefslogtreecommitdiff
path: root/app/source/Cplt/Utils/Size.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/source/Cplt/Utils/Size.hpp')
-rw-r--r--app/source/Cplt/Utils/Size.hpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/app/source/Cplt/Utils/Size.hpp b/app/source/Cplt/Utils/Size.hpp
index ae38e8a..bcad488 100644
--- a/app/source/Cplt/Utils/Size.hpp
+++ b/app/source/Cplt/Utils/Size.hpp
@@ -18,25 +18,21 @@ public:
}
Size2(Vec2<T> vec)
- : width{ vec.x }, height{ vec.y }
- {
+ : width{ vec.x }, height{ vec.y } {
}
- operator Vec2<T>() const
- {
+ operator Vec2<T>() const {
return { width, height };
}
- Vec2<T> AsVec() const
- {
+ Vec2<T> AsVec() const {
return { width, height };
}
friend bool operator==(const Size2<T>&, const Size2<T>&) = default;
template <class TTarget>
- Size2<TTarget> Cast() const
- {
+ Size2<TTarget> Cast() const {
return {
static_cast<TTarget>(width),
static_cast<TTarget>(height),