include fix

This commit is contained in:
2022-03-03 20:58:10 +01:00
parent 83f1872f43
commit 3e342396fe
3 changed files with 44 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
#pragma once
#include <iostream>
#include "Size.hpp"
@@ -10,7 +11,7 @@ namespace frame
int32_t y;
Vector() = default;
Vector(int32_t x, int32_t)
Vector(int32_t x, int32_t y)
: x(x)
, y(y)
{
@@ -18,7 +19,7 @@ namespace frame
Vector(Size const& size)
: x(size.width)
, y(size.width)
, y(size.height)
{
}
@@ -53,4 +54,9 @@ namespace frame
return a;
}
} // namespace frame
inline std::ostream& operator<<(std::ostream& os, Vector const& v)
{
return os << "x: "<< v.x << " y: " << v.y;
}
} // namespace frame