diff options
Diffstat (limited to 'include/components/point.hpp')
-rw-r--r-- | include/components/point.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/components/point.hpp b/include/components/point.hpp index b0d0f35..0abc081 100644 --- a/include/components/point.hpp +++ b/include/components/point.hpp @@ -3,7 +3,11 @@ #include "vec2.hpp" -struct Point : public Vec2 {}; +struct Point : public Vec2 { + constexpr Point() = default; + constexpr Point(float x_, float y_): Vec2(x_, y_) {} + Point(std::tuple<float, float> tup): Vec2(tup) {} +}; #endif // COMPONENTS_POINT_HPP |